Syncfusion.Grid.Windows
Example 


ColStyles Property (GridModel)

Gets column styles. Individual cells will inherit attributes from the corresponding column style.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
Public ReadOnly Property ColStyles As GridModelColStylesIndexer
'Usage
 
Dim instance As GridModel
Dim value As GridModelColStylesIndexer
 
value = instance.ColStyles
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public GridModelColStylesIndexer ColStyles {get;}
Example
This example shows how to use the ColStyles property.
// Setting whole column's styles.
this.gridControl1.Model.ColStyles[1].BackColor = Color.Red;
this.gridControl1.Model.ColStyles[1].Font.Facename = "Segoe UI";
this.gridControl1.Model.ColStyles[1].Font.Bold = true;
' Setting whole column's styles.
Me.gridControl1.Model.ColStyles(1).BackColor = Color.Red
Me.gridControl1.Model.ColStyles(1).Font.Facename = "Segoe UI"
Me.gridControl1.Model.ColStyles(1).Font.Bold = True
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also