How to set the right DataGridView Coulmn width?

  • Thread starter Thread starter Ishiirou
  • Start date Start date
I

Ishiirou

Guest
Sadly the AutoResizeColumn method is FUBAR and simply does nothing (for 5+ years) so I always have to manually change column width and it's always a headache.

Setting the width to a multiplier of the longest value's character length is always either too short for long values or too long for short values but if the user clicks the column divider to automatically set the column width to the longest value while the program is running it works perfectly.

Is there a way to trigger this event programmatically? Or else a way to properly set column width to the longest value (including column header)?

Continue reading...
 
Back
Top