Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

DataGridView AutoResizeColumns Method

Hi. Can I resize all the columns in one go or set them to resize to whatever data there is.
What code would I use? Does this happen after databinding
Avatar of Robert Schutt
Robert Schutt
Flag of Netherlands image

You can use the AutoSizeColumnsMode for that. For example, set it to AllCells.
ASKER CERTIFIED SOLUTION
Avatar of Robert Schutt
Robert Schutt
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Great answer