Syncfusion.Grid.Windows
Example 


ColStyles Property (GridControl)

See GridModel.ColStyles in the GridModel class for information.
Syntax
'Declaration
 
<DescriptionAttribute("Styles used by the columns in the grid. Column cells will inherit this style.")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<CategoryAttribute("Grid Contents")>
<BrowsableAttribute(False)>
Public Property ColStyles As GridModelColStylesIndexer
'Usage
 
Dim instance As GridControl
Dim value As GridModelColStylesIndexer
 
instance.ColStyles = value
 
value = instance.ColStyles
[Description("Styles used by the columns in the grid. Column cells will inherit this style.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Category("Grid Contents")]
[Browsable(false)]
public GridModelColStylesIndexer ColStyles {get; set;}
Example
This example shows how to use ColStyles property.
// Setting whole column's styles.
this.gridControl1.ColStyles[1].BackColor = Color.Red;
this.gridControl1.ColStyles[1].Font.Facename = "Segoe UI";
this.gridControl1.ColStyles[1].Font.Bold = true;
' Setting whole column's styles.
Me.gridControl1.ColStyles[1].BackColor = Color.Red
Me.gridControl1.ColStyles[1].Font.Facename = "Segoe UI"
Me.gridControl1.ColStyles[1].Font.Bold = true
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also