ComponentOne FlexGrid for WinForms
Formatting the Border Style of the Control
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.

In the Designer

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.

In Code

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;

Three-Dimensional Border

The border will be three-dimensional.


Single Line Border

The border will be a single line.


Light Sunken Border

The border will be light and three-dimensional.


No Border

There is no border.


XP Theme Border

The border will be XP themed.


See Also