Articles in this section
Category / Section

How to set the color of the empty space in the Grid’s Client area?

2 mins read

By using the GridControl.Model.Properties, you can set the background color for the empty space in the Grid’s Client area.

C#

//Color of client area to the right of last column and below the last row.
gridControl1.Model.Properties.BackgroundColor = Color.Blue;
//Default color of the gridlines that make up the cell borders.
gridControl1.Model.Properties.GridLineColor = Color.Blue;

VB

'Color of client area to the right of last column and below the last row.
gridControl1.Model.Properties.BackgroundColor = Color.Blue
'Default color of the gridlines that make up the cell borders.
gridControl1.Model.Properties.GridLineColor = Color.Blue

 

Showing background color for empty spaces in Grid

Figure 1: Output

Sample Links:

C#:  ColorEmptySpaceInGC-CS.zip

VB: ColorEmptySpaceInGC-VB.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied