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. (Last updated on: November 16, 2018).
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 08:34 AM UTC Sep 2,2011 02:28 PM UTC WPF 3
loading
Tags: GridControl
sitharam
Asked On August 17, 2011 08:34 AM UTC

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 10:23 AM UTC

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


Jawahar Jeevanandan J [Syncfusion]
Replied On 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#]:




Jawahar Jeevanandan J [Syncfusion]
Replied On 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.


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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;