BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi Vasanth,
Thank you for using Syncfusion Products.
We have analyzed your query. When changing the value at runtime the StyleSelector is not called and the style is not applied based on the changed value. However you can achieve this requirement by calling the UpdateDataRow method and also by calling the InvalidateMeasureInfo() for visual container in the CurrentCellEndEdit event.
Code Example [C#]:
void datagrid_CurrentCellEndEdit(object sender, CurrentCellEndEditEventArgs args) { var rowindex = args.RowColumnIndex.RowIndex; this.datagrid.UpdateDataRow(rowindex); } |
We have also prepared a sample based on this and you can download the sample from the below location,
Sample: http://www.syncfusion.com/downloads/support/directtrac/143149/ze/SfGridDemo-1646472712
Please let us know if you need further assistance.
Thank you,
Jai Ganesh S
Hi Vasanth,
Thank you for the update.
Please let us know if you need further assistance on this.
Thank you,
Jai Ganesh S
You can trigger the style selector when you changed the cell value by using UpdateDataRow method in WPF like in WinRT.
Please find the sample for WPF platform from the following location,
Sample Link: http://www.syncfusion.com/downloads/support/forum/120502/ze/RowStyleSelector_WPF906788637
Please refer the below KB document to change the cell value at runtime,
KB Link: https://syncfusion.com/kb/5992/how-to-change-the-gridcell-style-at-runtime
Regards,
Jayapradha