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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

change foreground color of cells after edit

Thread ID:

Created:

Updated:

Platform:

Replies:

100090 Jul 3,2011 12:27 AM UTC Jul 7,2011 08:27 AM UTC WPF 1
loading
Tags: GridControl
Mary Fontana
Asked On July 3, 2011 12:27 AM UTC

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?




Rajasekar [Syncfusion]
Replied On 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




CONFIRMATION

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.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;