Syncfusion.Grid.Windows
Example 


BaseStylesMap Property (GridControl)

See GridModel.BaseStylesMap in the GridModel class for information.
Syntax
'Declaration
 
<BrowsableAttribute(True)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<CategoryAttribute("Grid Contents")>
<DescriptionAttribute("The collection of base styles used in this grid.")>
Public Property BaseStylesMap As GridBaseStylesMap
'Usage
 
Dim instance As GridControl
Dim value As GridBaseStylesMap
 
instance.BaseStylesMap = value
 
value = instance.BaseStylesMap
[Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[RefreshProperties(RefreshProperties.Repaint)]
[Category("Grid Contents")]
[Description("The collection of base styles used in this grid.")]
public GridBaseStylesMap BaseStylesMap {get; set;}
Example
This example shows how to use BaseStylesMap property.
// TextColor for all the grid cells will be changed to Blue
this.gridControl1.BaseStylesMap["Standard"].StyleInfo.TextColor = Color.Blue;
// Backcolor for all the header cells (Row and Column) will be changed as "Red"
this.gridControl1.BaseStylesMap["Header"].StyleInfo.BackColor = Color.Red;
' TextColor for all the grid cells will be changed to Blue
Me.gridControl1.BaseStylesMap["Standard"].StyleInfo.TextColor = Color.Blue
' Backcolor for all the header cells (Row and Column) will be changed as "Red"
Me.gridControl1.BaseStylesMap["Header"].StyleInfo.BackColor = Color.Red
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also