Gets a specified TBD in the GridColumnsCollection.
[C#] In C#, this member is the indexer for the GridColumnsCollection class.
Gets the DataGridColumn associated with the specified DataColumn.
[Visual Basic] Overloads Public Default ReadOnly Property Item(DataColumn) As DataGridColumn
[C#] public DataGridColumn this[DataColumn] {get;}
[C++] public: __property DataGridColumn* get_Item(DataColumn*);
[JScript] GridColumnsCollection.Item (DataColumn)
Gets the DataGridColumn at a specified index.
[Visual Basic] Overloads Public Default ReadOnly Property Item(Integer) As DataGridColumn
[C#] public DataGridColumn this[int] {get;}
[C++] public: __property DataGridColumn* get_Item(int);
[JScript] GridColumnsCollection.Item (int)
Gets the DataGridColumn with the specified name.
[Visual Basic] Overloads Public Default ReadOnly Property Item(String) As DataGridColumn
[C#] public DataGridColumn this[String] {get;}
[C++] public: __property DataGridColumn* get_Item(String*);
[JScript] GridColumnsCollection.Item (String)
The following example returns the DataGridColumn named in the Item property (GridColumnsCollection indexer).
Note This example shows how to use one of the overloaded versions of the Item property (GridColumnsCollection indexer). For other examples that may be available, see the individual overload topics.
[Visual Basic]
Dim gCol As DataGridColumn ' Presuming a DataGridColumn with the header "FName" exists. Set gCol = DataGrid1.GridColumns("Fname") Debug.Print gCol.GetType.ToString
GridColumnsCollection Class | GridColumnsCollection Members | System.WinForms Namespace