By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,239 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,239 IT Pros & Developers. It's quick & easy.

Web Datagrid column widths

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
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


Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.