DataGrid is there a way to make a column as wide as the longest text?

  • Thread starter Thread starter needin4mation
  • Start date Start date
N

needin4mation

I can shorten and lengthen a grid column with the width property, but
can it be done real time without my having to do anything? I don't
want the columns as wide as they are, but sometimes they might have to
be because of the length of the text.

Thanks for any help.
 
I can shorten and lengthen a grid column with the width property, but
can it be done real time without my having to do anything? I don't
want the columns as wide as they are, but sometimes they might have to
be because of the length of the text.

Thanks for any help.

If you don't set a specified width of a column, it will grow up to the
maximum allowed width.

hth,
Mythran
 

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