DataGridTableStyle Constructor ()

 

Initializes a new instance of the DataGridTableStyle class.

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

public:
DataGridTableStyle()

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: