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

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;

Property Value

A DataGrid control that displays all of the columns.

Remarks

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.

Example [Visual Basic]

The following exmple uses

[Visual Basic]

Dim dgCol As DataGridColumn
Set dgCol = DataGrid1.GridColumns(0)
dgCol.DataGrid.AlternatingBackColor = System.Drawing.Yellow

See Also

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