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;
A DataGridTable that contains the current DataTable the column belongs to.
You can access the TBD for a DataColumn by using the DataGridTable property.
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
DataGridColumn Class | DataGridColumn Members | System.WinForms Namespace | DataGridTable