The FlexGrid control lets you customize the border of grid, row, column and even cells by changing its style, color direction and so on.
To customize border of the grid control, you can use the BorderStyle property which accepts values from BorderStyleEnum provided by the C1.Win.FlexGrid.Util.BaseControls namespace.
Following code shows how to customize border of the WinForms FlexGrid control.
To customize the border style of a particular row or column, you must access the 'Border' item of CellStyle class using StyleNew property and set its properties such as border style, direction and color. The grid control provides BorderStyleEnum as well as BorderDirEnum to set the border style and direction respectively.
Use the below code to change border of rows or columns of the WinForms FlexGrid.
To customize border of every cell in the grid, you can access the built-in style "Normal" and set its border properties. Similarly, you can change the style of specific types of cells such fixed or frozen by accessing their corresponding styles from Styles collection.
Below code lets you customize the border of normal cells of the WinForms FlexGrid.