DataGridTableStyle::DataGrid Property
Gets or sets the System.Windows.Forms::DataGrid control for the drawn table.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property DataGrid^ DataGrid { virtual DataGrid^ get(); virtual void set(DataGrid^ value); }
Property Value
Type: System.Windows.Forms::DataGrid^The System.Windows.Forms::DataGrid control that displays the table.
The System.Windows.Forms::DataGrid control displays data in the form of a grid. The DataGridTableStyle is an object that represents the drawn grid. The System.Windows.Forms::DataGrid property returns a reference to the control that is displaying the grid.
The DataGrid property is set when a DataGridTableStyle is added to a System.Windows.Forms::DataGrid control's GridTableStylesCollection. You should not try to set this property unless you are overriding it and creating a designer for a user control that incorporates the DataGrid control.
The following code example prints the CurrentCell of the System.Windows.Forms::DataGrid displaying a DataGridTableStyle.
Available since 1.1