Contents
- Displaying horizontal lines
- Displaying vertical lines
- Customizing Grid line color
Having trouble getting help?
Contact Support
Contact Support
Customize Appearance in Windows Forms GridControl
15 Jun 20212 minutes to read
Essential Grid provides support to display horizontal and vertical lines and customize the grid line color.
Displaying horizontal lines
You can display horizontal lined using DisplayHorizontalLines property.
The following code illustrates how to display horizontal lines in GridControl:
//The following code illustrates how to customize grid line color in GridControl.
gridControl1.DisplayHorizontalLines = true;
//The following code illustrates how to display horizontal lines in GridDataBoundGrid.
gridDataBoundGrid.DisplayHorizontalLines = true;
//The following code illustrates how to display horizontal lines in GridGrouping control.
gridGroupingControl1.DisplayHorizontalLines = true;
'The following code illustrates how to customize grid line color in GridControl.
gridControl1.DisplayHorizontalLines = True
'The following code illustrates how to display horizontal lines in GridDataBoundGrid.
gridDataBoundGrid.DisplayHorizontalLines = True
'The following code illustrates how to display horizontal lines in GridGrouping control.
gridGroupingControl1.DisplayHorizontalLines = True
Displaying vertical lines
You can display vertical lined using the DisplayVerticalLines__property.
The following code illustrates how to display vertical lines in GridControl:
//The following code illustrates how to customize grid line color in GridControl:
gridControl1.DisplayVerticalLines = true;
//The following code illustrates how to display vertical lines in GridDataBoundGrid:
gridDataBoundGrid.DisplayVerticalLines = true;
//The following code illustrates how to display vertical lines in GridGrouping control:
gridGroupingControl1.DisplayVerticalLines = true;
'The following code illustrates how to customize grid line color in GridControl.
gridControl1.DisplayVerticalLines = True
'The following code illustrates how to display vertical lines in GridDataBoundGrid.
gridDataBoundGrid.DisplayVerticalLines = True
'The following code illustrates how to display vertical lines in GridGrouping control:.
gridGroupingControl1.DisplayVerticalLines = True
Customizing Grid line color
You can customize grid line color using GridLineColor property.
The following code demonstrates how to customize the color of grid lines in the GridControl.
//The following code illustrates how to customize grid line color in GridControl:
gridControl1.GridLineColor = Color.Red;
//The following code illustrates how to customize grid line color in GridDataBoundGrid:
gridDataBoundGrid.GridLineColor = Color.Red;
//The following code illustrates how to customize grid line color in GridGrouping control:
gridGroupingControl1.GridLineColor = Color.Red;
'The following code illustrates how to customize grid line color in GridControl.
gridControl1.GridLineColor = Color.Red
'The following code illustrates how to customize grid line color in GridDataBoundGrid.
gridDataBoundGrid.GridLineColor = Color.Red
'The following code illustrates how to customize grid line color in GridGrouping control.
gridGroupingControl1.GridLineColor = Color.Red