Hi there,
Is there a way i can pre- set the widith of particular rows in my datagridview1 depending on the data they are to contain. some need to be wider and others narrower.
kindly show an example of code to do this and i can carry on from there.
thanks again.
Set the widith size for datagridview rows
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Zoran HorvatRank #792 · 2.9K reputationPosted Aug 5, 2011, 2:52 AM EDT
You can dynamically resize columns using column header's AutoSizeMode property:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn.autosizemode.aspx
Zoran