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
close icon

grid to Doc

hi , i am setting the grid background to some colour using the selectrange tab, Misc property.but while using grid .properties.background colour,i cannot access the indiidual colours.
how can i do this.problem.it is the colour which has set in the grid.

1 Reply

HA haneefm Syncfusion Team July 23, 2007 06:06 PM UTC

Hi V.Sravan,

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 the BackColor in the standard basestyle so it controls the default color of the cells. The GridStyleInfo.BackColor property is used to set the backcolor of the cells on the GridControl.

this.grid[row, col].BackColor = Color.Red;

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon