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!

DataGridColumn.DataGridTable

Gets the DataGridTable for the column.

[Visual Basic]
Overridable Public ReadOnly Property DataGridTable As DataGridTable
[C#]
public DataGridTable DataGridTable {virtual get;}
[C++]
public: __property virtual DataGridTable* get_DataGridTable();
[JScript]
public function get DataGridTable() : DataGridTable;

Property Value

A DataGridTable that contains the current DataTable the column belongs to.

Remarks

You can access the TBD for a DataColumn by using the DataGridTable property.

Example [Visual Basic]

The following example prints the total number of rows in the DataTable through use of the DataGridTable property.

[Visual Basic]

Private Sub GetDgTable()
   Dim dgt As DataGridTable
   Dim dgc As DataGridColumn
   Set dgc = datagrid1.GridColumns(0)
   Set dgt = dgc.DataGridTable
   Debug.Print dgt.DataTable.Rows.Count
End Sub

See Also

DataGridColumn Class | DataGridColumn Members | System.WinForms Namespace | DataGridTable