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

Pivot backcolor

Hi,

Is there a way to change the backcolor of the control? -> see image of the area I would like to change... 

I have tried: PivotGridControl.TableModel.TableStyle.BackColor = Color.Red but this does not work.

Thanks a lot!

Regards,

Matthijs

Attachment: Knipsel_cdad9dd7.zip

3 Replies

MG Mohanraj Gunasekaran Syncfusion Team April 25, 2017 11:11 AM UTC

Hi Matthijs, 

Thanks for using Syncfusion products. 

In order to change the background color of PivotGridControl, BackgroundColor property of TableModel.Properties can be used. Please refer to the below code example and the sample, 
 
Code example 
this.pivotGridControl1.TableModel.Properties.BackgroundColor = Color.LightBlue; 
 
Screenshot 
 
 
Sample link: PivotGridControl 
 
Regards, 
Mohanraj G 



MH Matthijs Huisman April 25, 2017 11:16 AM UTC

Fantastic, it works! I searched the library but never saw this one...

Thanks a lot!

Regards,

Matthijs


MG Mohanraj Gunasekaran Syncfusion Team April 26, 2017 04:21 AM UTC

Hi Matthijs,  
 
Thanks for your update. 
 
We are glad to know that your reported problem has resolved. Please let us know, if you have any other concerns. 
 
Regards, 
Mohanraj G 


Loader.
Live Chat Icon For mobile
Up arrow icon