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
 
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?
 
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
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top