How to change the grid control''s background color to its parent control

I'm using SyncFusion Grid Control. I need to change the background color to its parent color(some color). what is the syntax for this.?

Thanks in advance..!


3 Replies

SI sitharam August 17, 2011 10:23 AM UTC

Grid color should be changed. not the cell color..



JJ Jawahar Jeevanandan J Syncfusion Team September 2, 2011 02:22 PM UTC

Hi Sitharam,

Thank you very much for using syncfusion products.

We can acheive your requirements by setting the background property of the grid conttrol.

Code snippet [C#]:





JJ Jawahar Jeevanandan J Syncfusion Team September 2, 2011 02:28 PM UTC

Hi Sitharam,

Please ignore the previous update.

We can acheive your requirements by setting the background property of the grid control.

Code snippet [C#]:

this.grid.Model.TableStyle.Background = Brushes.Red;
this.grid.Model.HeaderStyle.Background = Brushes.Red;

We have prepared a sample based on this and you can find the sample under the following location.

Sample :http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Cell Style Demo994605242.zip

Please let us know if this helps.

Regards,
Jawahar.


Loader.
Up arrow icon