At design-time, follow these steps:
Click on the Columns collection in the property pages.
Select the column you wish to change.
Entering an Integer will set the width in pixels.
Entering a % will set the width of the column to that percentage of the total size of the grid (example: 25% will set the column to be 25% of the total grid width).
At run-time, use the following code.
In VB.Net:
UltraWebGrid1.Columns(0).Width = Unit.Pixel(100)
UltraWebGrid1.Columns(0).Width = Unit.Percentage(33.3)
In C#:
UltraWebGrid1.Columns(0).Width = Unit.Pixel(100);
UltraWebGrid1.Columns(0).Width = Unit.Percentage(33.3);
Monday, June 1, 2009
How to change the width of columns in ultrawebgrid
Posted by Suryan at 6:39 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment