How to set the Background color for a Grid

9 Dec 2019 / 1 minute to read

To set the BackColor for the area of the grid populated by cells, you must set the grid.BackColor property to the color. The grid display may also have regions where there are no cells. These regions will be the grid’s client area where there are no cells or scrollbars.

grid.BackColor = Color.Blue;

grid.Properties.BackgroundColor = Color.Orange;
grid.BackColor = Color.Blue

grid.Properties.BackgroundColor = Color.Orange