Gets the TBD control that the DataGridColumn belongs to.
[Visual Basic] Overridable Public ReadOnly Property DataGrid As DataGrid [C#] public DataGrid DataGrid {virtual get;} [C++] public: __property virtual DataGrid* get_DataGrid(); [JScript] public function get DataGrid() : DataGrid;
A DataGrid control that displays all of the columns.
This property is called by a DataGridTable when its DataGrid property changes. This property is required because any child controls hosted by a TBD must be added to the DataGrid control's ControlCollection.
The following exmple uses
[Visual Basic]
Dim dgCol As DataGridColumn Set dgCol = DataGrid1.GridColumns(0) dgCol.DataGrid.AlternatingBackColor = System.Drawing.Yellow
DataGridColumn Class | DataGridColumn Members | System.WinForms Namespace | DataGrid | DataGridTable