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.Remove

Removes a TBD from the GridColumnsCollection.

Overload List

Removes the TBD with the specified index from the GridColumnsCollection.

[Visual Basic] Overloads Public Sub Remove(Integer)
[C#] public void Remove(int);
[C++] public: void Remove(int);
[JScript] public function Remove(int);

Removes the specified TBD from the GridColumnsCollection.

[Visual Basic] Overloads Public Sub Remove(DataGridColumn)
[C#] public void Remove(DataGridColumn);
[C++] public: void Remove(DataGridColumn*);
[JScript] public function Remove(DataGridColumn);

Example [Visual Basic]

The following example removes a TBD from a TBD using a specified DataColumn.

Note   This example shows how to use one of the overloaded versions of Remove. For other examples that may be available, see the individual overload topics.

[Visual Basic]

Private Sub RemoveDataGridCol(Optional ByVal dc As DataColumn)
   Dim dc As DataColumn
   Set dc = DataSets(1).DataTables(1).Columns(3)
   DataGrid1.GridColumns.Remove dc
End Sub

See Also

GridColumnsCollection Class | GridColumnsCollection Members | System.WinForms Namespace