3
Vote

DataStateBehavior does not work within DataGridTemplateColumn.CellTemplate

description

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... ?)

comments

balakrishnay wrote Jun 1, 2010 at 6:16 AM

Hi,

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..

Thanks,
Bala.

tommck wrote Jun 30, 2010 at 3: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 5:33 PM

wrote Nov 4, 2010 at 10:47 AM

lkempe wrote Nov 5, 2011 at 12:55 PM

Hi

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

Cheers
Laurent Kempé

wrote Feb 21, 2013 at 10:49 PM

xiaoyuandlg wrote Jan 7, 2014 at 1:52 AM

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