|104354||Jul 12,2012 08:21 PM UTC||Jul 16,2012 04:29 AM UTC||WPF||3|
I am using Syncfusion v.220.127.116.11.
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 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,
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.
It works as I need. Thank you very much.
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.
This page will automatically be redirected to the sign-in page in 10 seconds.