Autosize Columns in a datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm looking for a way to resize all columns in a datagrid after populating
it with DataRow objects, depending on the maximum size of the strings
in the textbox cells.

I tried a run through all the cells and measure with graphics.MeasureString(),
but got wrong results.

Anyone out there having a clue?

Michael.
 
Back
Top