Main Menu
Knowledge Base
Product Registration
Log an Incident
Request a Feature
Search Incidents/Bug Reports

Search KB

Please note: In an effort to better serve you, we are in the process of restructuring DevCenter. In the process, we have moved many items that you may be used to finding in DevCenter over to the Main Site. If you are having trouble locating something, please try looking at the following places:

Knowledge Base Article: KB01055

HOWTO:Assign specific widths to columns

The information in this article applies to:
UltraWinGrid (v1.0.5005)
  Article Created: 

Last Updated:

Article Type
How To
Page Options
Average Rating:
2 out of 10

Rate this page
Print this page
E-mail this page
Add to Favorites


On occasion you may want to assign specific widths to your grid columns. Use the Width property of the Column object to do this.
In Visual Basic:

Dim oCol As Infragistics.Win.UltraWinGrid.UltraGridColumn
For Each oCol In e.Layout.Bands(0).Columns
oCol.Width = 50

In C#:

foreach ( Infragistics.Win.UltraWinGrid.UltraGridColumn column in e.Layout.Bands[ 0 ].Columns )
column.Width = 50;

How would you rate the quality of this content?
Poor -----------------------------------------> Outstanding

Tell us why you rated the content this way. (optional)