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 foreground color of cells after edit

I am using DataGridControl and GridDataVisibleColumn to add columns. The datasource is a obervablecollection of data objects. Only one column is editable. I would like to change the foreground color of the text of the cells in this column if the cell value is changed - but only if value changed is different than the original value.

I have property on the data object that has the original value value and property used as mappingname for the cell in grid.

Given that I have the "current cell" that is changed.
I think I can then get its style and change the text foreground color.
How do I get to the data object of this cell?




1 Reply

RA Rajasekar Syncfusion Team July 7, 2011 08:27 AM UTC

Hi Mary,

Thank you for your update.

We have prepared sample based on your requiremnet, please find the sample in the below location,

Sample: < http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=CS599246234.zip >

Please let us know if you have any queries.

Thanks,
Rajasekar




Loader.
Live Chat Icon For mobile
Up arrow icon