We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid background color

Thread ID:





20159 Oct 11,2004 09:01 PM UTC Oct 13,2004 12:39 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On October 11, 2004 09:01 PM UTC

Hi, I am trying to change the background color of the griddataboundgrid to white, but looks like it does not work in runtime. From design time, I can see the grid color change to white, but when I run, it shows grey. I have also checked the value of Properties.BackgroundColor and BackColor and they both says White. What could be wrong? Thanks.

Administrator [Syncfusion]
Replied On October 11, 2004 10:07 PM UTC

Try setting grid.TableStyle.BackColor = Color.White to see if that helps. Can you post a screen shot showing what is not white in your grid?

Administrator [Syncfusion]
Replied On October 12, 2004 02:37 PM UTC

Clay, After setting the BackColor and Properties.BackgoundColor to white, then it works. What are the relationship between these two? Thanks.

Administrator [Syncfusion]
Replied On October 13, 2004 12:39 PM UTC

The grid.Properties.BackgroundColor is used to color the grid''s client area not occupied by grid cells (to the left and bottom of the grid cells when the cells do not cover the entire area of the grid). The grid.BackCOlor is used to set teh BackColor in the standard basestyle so it controls the default color of the cells.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon