Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Datagrid column cell color change, after edit
4 replies. Latest Post by puneetpriyadarshi on June 7, 2009.
(0)
sl_ananya
Member
16 points
21 Posts
10-05-2008 6:14 AM |
Hi, inside my datagrid I have used celltemplate and celleditingtemplate to display and edit data.
sladapter
All-Star
17441 points
3,172 Posts
10-05-2008 1:45 PM |
The best way to do this is using DataBiding, you can set the binding to your display control's Background. Use a ValueConverter in the binding, based on the Data return different SolidColorBrush to set the background color.
See the answer in this thread:
http://silverlight.net/forums/p/27465/93474.aspx#93474
10-05-2008 4:53 PM |
I am binding my datagrid with a collection, And more than one column is editable.I want to change color of column only when someone has edited data. How I will determine thatthat which column is being edited, and user has actually edited data. i.e data in textbox is different than the original data.
lee_sl
Contributor
2992 points
585 Posts
10-05-2008 7:08 PM |
try something like this
http://leeontech.wordpress.com/2008/10/05/changing-foreground-of-cells-that-are-modified-in-datagrid/
puneetpr...
28 points
17 Posts
06-07-2009 9:55 AM |
Try this link it might help
Thanks,
Puneet