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

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top