Syncfusion.Grid.Windows
Example 


BaseStylesMap Property (GridModel)

Gets or sets the GridBaseStylesMap that is associated with this GridModel.
Syntax
'Declaration
 
Public Property BaseStylesMap As GridBaseStylesMap
'Usage
 
Dim instance As GridModel
Dim value As GridBaseStylesMap
 
instance.BaseStylesMap = value
 
value = instance.BaseStylesMap
public GridBaseStylesMap BaseStylesMap {get; set;}
Example
This example shows to use the BaseStyleMap property.
// Cell value for all the grid cells will be changed as "Sample"
this.gridControl1.Model.BaseStylesMap["Standard"].StyleInfo.CellValue = "Sample";
// Backcolor for all the header cells (Row and Column) will be changed as "Red"
this.gridControl1.Model.BaseStylesMap["Header"].StyleInfo.BackColor = Color.Red;
' Cell value for all the grid cells will be changed as "Sample"
Me.gridControl1.Model.BaseStylesMap("Standard").StyleInfo.CellValue = "Sample"
' Backcolor for all the header cells (Row and Column) will be changed as "Red"
Me.gridControl1.Model.BaseStylesMap("Header").StyleInfo.BackColor = Color.Red
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also