Web Datagrid column widths

K

kpg

Hi All, me again.

I've got my web form data grid set up pretty nice. But how
do you set the column width? The columns seem to grow and shrink
based on the width of the data in them (that's ok) but if the data gets to
long I get word wrap in the cell and the whole datagrid grows past the
end of my page.

I want to set fixed column width and prevent word wrap.

I guess I can use the formatting to trim all data to the size I want but
it seems there should be a column width somewhere?

TIA
kpg
 
K

kpg

As usual if I just give myself enough time (and desperation) I will find
the answer.

For the possible benefit of others here it is:

First set the width of the datagrid on the form to the desired total width,
then use the datagrid's Property Builder -> Format -> Columns. Set all
columns except for one to the desired column widths. The one that was
not set will grow to make up the difference between the control width and
the sum of all the other columns.

Yea for me.
kpg
 

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

Top