Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fix column widths in data grid

Status
Not open for further replies.

RiverGuy

Programmer
Jul 18, 2002
5,011
US
Is there anyway to do this? My description field gets cut off, and I would like it if the users did not have to change it themselves.

Thanks.
 
Right click on data grid Properties under General DefColWidth

the only thing with this is that all Columns are set to the same width. Live to learn or die trying
 
You can set individual column widths with something like:
Code:
DataGrid1.Columns(1).Width = 1234

This sets the second column width to 1234 Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top