NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

GridColumnsCollection.Item

Gets a specified TBD in the GridColumnsCollection.

[C#] In C#, this member is the indexer for the GridColumnsCollection class.

Overload List

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)

Example [Visual Basic]

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

See Also

GridColumnsCollection Class | GridColumnsCollection Members | System.WinForms Namespace