Articles in this section

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

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

//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;
'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

The output is as follows:

 

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)
Access denied
Access denied