Articles in this section
Category / Section

How to set the background color for a Grid?

1 min read

 

In order to set back color for the WinForms GridControl cells, the BackColor property can be used to set the desired color. The BackgroundColor property used to set the desired color for area which is not covered by grid cells via the Properties of the grid.

Code Snippet

Grid Control

C#

// To set back color for grid cells
gridControl1.BackColor = Color.MintCream;
 
// To set background color for grid
gridControl1.Properties.BackgroundColor = Color.LightSkyBlue;

 

VB

' To set back color for grid cells
gridControl1.BackColor = Color.MintCream
 
' To set background color for grid
gridControl1.Properties.BackgroundColor = Color.LightSkyBlue

 

Screenshot

Showing back color for a Grid

 

 

Sample links:

C# GridBackGroundColor_CS

VB GridBackGroundColor_VB

Conclusion

 

Hope you enjoyed learning about how to set the background color for a Grid.

You can refer to our WinForms GridControl’s feature tour page to learn about its other groundbreaking feature representations. You can explore our WinForms GridControl documentation to understand how to present and manipulate data.

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms GridControl and other WinForms components.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

 

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