Setting widths of columns


G

Gary Paris

I have a DataGrid on a Windows Form and I set the DataSource and DataMember.
Data appears correctly. Question is how can I make certain columns wider to
accomodate the fields. One field is ComapnyName and half of it gets
truncated.

Any help would be appreciated.

Thanks,

Gary
 
Ad

Advertisements

G

Gary Paris

Since nobody answered, I guess it's too complicated or nobody else knows how
to do it?

Why do some posts get answered and others bypassed?
 
Ad

Advertisements

D

DCatherman

Check out the DataGridColumnStyle class in helps. I have not figured
everything out yet, but there is a .width property you can assign along
with format and many other styles.

Dave
 

Top