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

change color of push button in GridControl

Hi,

I am using Syncfusion v.9.2.0.137.

I would like to have possibilty to change color (or even brush) of push button control.

In Windows Forms application I was able to catch DrawCellButtonBackground event and paint button as I want. What could be done in WPF to do the same thing?

Thank you,

Andrei


3 Replies

RA Rajasekar Syncfusion Team July 13, 2012 10:43 AM UTC

 

Hi Andrei,

 

Thank you for your update. You can achieve this requirement by using the DataTemplate Celltype(Button in the DataTemplate). You can achieve your desired color in the CellValue2 of the GridStyleInfo and bind that respective property to the GridControl. Please check the below sample,

 

Sample: WpfApplication2.zip

 

Suppose if these doesn’t suits your requirement means, then please modify our sample and revert us with replication procedure.

 

Please let us know if you have any queries.

 

Thanks,

Rajasekar



EG Eugene Gutman July 13, 2012 08:51 PM UTC

Hi, Rajasekar!

It works as I need. Thank you very much.

Andrei



RA Rajasekar Syncfusion Team July 16, 2012 04:29 AM UTC

Hi Andrei,
 
Thank you for your reply.
 
Thanks,
Rajasekar

Loader.
Live Chat Icon For mobile
Up arrow icon