FlexGrid for WinForms Task-Based Help > Formatting the Border Style > Formatting the Border Style of the Grid |
To format the border style of the grid, set the Style property to Dotted, Double, Fillet, Flat, Groove, Inset, None, or Raised. This property can be set using C1FlexGrids built-in styles either in the designer or in code. The following table describes each of the border styles.
Border | Description |
---|---|
Dotted | Dotted border. |
Double | Double border. |
Fillet | Fillet border. |
Flat | Solid flat border. |
Groove | Groove border. |
Inset | Inset border. |
None | No border. This is the default setting. |
Raised | Raised border. |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1FlexGrid1.Styles("Normal").Border.Style = C1.Win.C1FlexGrid.BorderStyleEnum.Dotted |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1FlexGrid1.Styles["Normal"].Border.Style = C1.Win.C1FlexGrid.BorderStyleEnum.Dotted; |
The cell border will be a dotted line.
The cell border will be double lines.
The cell border will be fillet.
The cell border will be a solid flat line.
The cell border will be grooved.
The cell border will be inset.
There is no cell border.
The cell border will be raised.