FlexGrid for WinForms Task-Based Help > Formatting the Border Style > Formatting the Border Style of the Control |
To format the border style of the control, set the ScrollableControl.BorderStyle property to Fixed3D, FixedSingle, Light3D, None, or XpThemes. This property can be set either in the designer or in code. The following table describes each of the border styles.
Border | Description |
---|---|
Fixed3D | A three-dimensional border. This is the default setting. |
FixedSingle | A single line border. |
Light3D | A light sunken border. |
None | No border. |
XpThemes | A border drawn using XP themes. |
Locate the BorderStyle property in the Properties window and set it to Fixed3D, FixedSingle, Light3D, None, or XpThemes. In this example, the BorderStyle property is set to Fixed3D.
Add code to the Form_Load event to set the BorderStyle property to Fixed3D, FixedSingle, Light3D, None, or XpThemes. The following code sets the BorderStyle property to Fixed3D:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1FlexGrid1.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Fixed3D |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1FlexGrid1.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Fixed3D; |
The border will be three-dimensional.
The border will be a single line.
The border will be light and three-dimensional.
There is no border.
The border will be XP themed.