DataGridTableStyle Constructor (Boolean)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the DataGridTableStyle class using the specified value to determine whether the grid table is the default style.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
DataGridTableStyle(
	bool isDefaultTableStyle
)

Parameters

isDefaultTableStyle
Type: System::Boolean

true to specify the table as the default; otherwise, false.

The following code example creates a new DataGridTableStyle and adds it to the GridTableStylesCollection.

private:
   void AddGridTable()
   {
      DataGridTableStyle^ myGridTableStyle;
      myGridTableStyle = gcnew DataGridTableStyle;
      myGridTableStyle->MappingName = "Customers";
      dataGrid1->TableStyles->Add( myGridTableStyle );
   }

.NET Framework
Available since 1.1
Return to top
Show: