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.
Unfortunately, activation email could not send to your email. Please try again.

Grid background color

Thread ID:

Created:

Updated:

Platform:

Replies:

20159 Oct 11,2004 05:01 PM Oct 13,2004 08:39 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 11, 2004 05:01 PM

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 06:07 PM

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 10:37 AM

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 08:39 AM

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.

CONFIRMATION

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.

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.

;