Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Columns Property
Collapse the table of content
Expand the table of content

Columns Property

Visual Studio .NET 2003

An array for accessing individual Column objects in the Grid control by column number. Available at design time and read-only at run time.

Grid.Columns(nCol).Property [ = Setting]

Property Values

Specifies the column in agGrid whose property is referenced. The far left Column is number 1.
Specifies the column's property to access.
Specifies the new property setting for all cells specified with nCol.


Use the Columns property to access the properties of a particular Column in a Grid. For example, SpecialGrid.Column(1).BackColor = RGB(255,0,0) changes the BackColor property of all the cells in Column 1 to bright red.

See Also

Column Object | ColumnCount Property | SetAll Method

Applies To: Grid Control

© 2015 Microsoft