Data grid column sizes

J

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
 
B

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
arinsharma
Top