CellTemplateSelector, How to fire?

Sep 22, 2009 at 6:13 PM

The DataGrid's CellTemplateSelector and CellEditingTemplate selector have been very useful to us. However, we now have a need to trigger the evalualtion manually (at a time other that going into and out of edit mode). Is there a way to do this? Essentially, we'd like the selector to re-evaluate at a time of our choosing.

Tom

Coordinator
Sep 22, 2009 at 8:39 PM

Hi TLangFromCodeplex,

What you can do here is store the CellTemplateSelector in a local variable.  Then when you want to re-evaluate the selector, you can assign the column CellTemplateSelector to null, and then back to the local stored value (original selector).

Hope that helps,

Saied K.