This is a migrated thread and some comments may be shown as answers.

Apply Conditional Formatting on Data Change

2 Answers 148 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 22 Oct 2012, 03:14 PM
Hi,

I think this is similar to the issue raised in the following thread :

http://www.telerik.com/community/forums/winforms/gridview/conditional-formatting-doesn-t-apply-after-updating-cell-value.aspx


however the solution posted does not seem to have an effect.

I am handling the CellEndEdit Event which performs a data save programatically. The formatting rules though do not update the colour coding of the row ones the save is complete. I have updated the CelLEndEdit Event to now call _grid.TableElement.Update(GridUINotifyAction.StateChanged) as per the suggestion in the thread after the save, but still this doesn't seem to apply the formatting.

Is there something I am missing?

Many thanks,

Mark.

2 Answers, 1 is accepted

Sort by
0
Accepted
Anton
Telerik team
answered on 24 Oct 2012, 01:35 PM
Hi Mark,

Thank you for writing.

I tried to reproduce the problem locally but to no avail – everything is working as expected on my side.
When I change a value using the UI, RadGridView automatically updates with the correct conditional formatting. If I change a value programmatically in CellEndEdit event, RadGridView is updated correctly as well.
There is sample demo project attached which I have used in my tests. Could you please take a look at it and modify it on a way to replicate this functionality does not work. This will allow me to investigate it and provide you with further support.

Thank you in advance for your collaboration. I am looking forward to your reply.

Regards,
Anton
the Telerik team
You’ve been asking for it and now it’s time for us to deliver. RadControls for WinForms Q3 2012 release is just around the corner. Sign up for a free webinar to see first all the latest enhancements.
0
Mark
Top achievements
Rank 1
answered on 26 Oct 2012, 07:34 AM
Hi,

Thanks for the project. I now have our code working correctly.

Thanks very much for your help,

Mark.
Tags
GridView
Asked by
Mark
Top achievements
Rank 1
Answers by
Anton
Telerik team
Mark
Top achievements
Rank 1
Share this question
or