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.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

100570 Aug 17,2011 04:34 AM Sep 2,2011 10:28 AM WPF 3
loading
Tags: GridControl
sitharam
Asked On August 17, 2011 04:34 AM

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..!


sitharam
Replied On August 17, 2011 06:23 AM

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


Jawahar Jeevanandan J [Syncfusion]
Replied On September 2, 2011 10:22 AM

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#]:




Jawahar Jeevanandan J [Syncfusion]
Replied On September 2, 2011 10:28 AM

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.


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.

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

;