DataGridTableStyle Constructor
Collapse the table of content
Expand the table of content

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 = new DataGridTableStyle();
   myGridTableStyle.MappingName = "Customers";
   dataGrid1.TableStyles.Add(myGridTableStyle);
}

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft