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

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.
 
M

Mythran

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

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top