DataStateBehavior does not work within DataGridTemplateColumn.CellTemplate


Talked with Peter via email briefly, but wanted to put this issue here so it doesn't get lost.
Basically, if you provide a DataTemplate to DataGridTemplateColumn.CellTemplate that has visual states and the DataStateBehavior the behavior never successfully goes to either state. The problem is the state names can't be found in the DataGridCell... maybe because it's inside the ContentPresenter inside the cell's template... ?)


balakrishnay wrote Jun 1, 2010 at 7:16 AM


I am facing same problem, any work around for this??
I am using silverlight 4 but still having this issue.
your help is highly appreciated..


tommck wrote Jun 30, 2010 at 4:04 PM

I have the same problem in a ControlTemplate. The binding statement's working, it's just not firing the state change...

wrote Aug 10, 2010 at 6:33 PM

wrote Nov 4, 2010 at 11:47 AM

lkempe wrote Nov 5, 2011 at 1:55 PM


I had the same issue today and solved moving the datatemplate to a user control

Laurent Kempé

wrote Feb 21, 2013 at 11:49 PM

xiaoyuandlg wrote Jan 7, 2014 at 2:52 AM

Seems that this is something wrong with the data grid cell.