Home All Groups Group Topic Archive Search About
Author
19 Dec 2006 11:09 PM
John Wright
I have a datagridview bound to a data table.  I want to force the columns to
all be the same size. How is this done with the grid?

John Wright

Author
19 Dec 2006 11:31 PM
Brennan Stehling
You can set the width on each column to an equal percentage and it will
resize the columns to fit but will maintain the size ratio.

But instead of setting the Width property I would instead set the
CssClass property and set width in a css file.  That will give you some
more options, like adding more style details.

Brennan Stehling
http://brennan.offwhite.net/blog/

John Wright wrote:
Show quoteHide quote
> I have a datagridview bound to a data table.  I want to force the columns to
> all be the same size. How is this done with the grid?
>
> John Wright