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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top