[]
Gets the Column at the specified index.
public Column this[int index] { get; }
Type | Name | Description |
---|---|---|
int | index |
Gets the Column that has the specified column name.
public Column this[string columnName] { get; }
Type | Name | Description |
---|---|---|
string | columnName |
You can use the Column object returned by this method to set attributes such as column height, visibility, style, selected state, and so on.
This indexer looks for a column with the specified Name. The column name is set automatically for you when the grid is bound to a database, or it may be set using code.