1 Replies - 7104 Views - Last Post: 28 June 2011 - 04:41 PM

Dynamically Changing Combobox to TextBox in datagrid in Silverlight 4

Posted 19 March 2011 - 03:09 AM

I m making an application in silverlight 4 .I am facing a problem,I need to change a particular combobox into textbox programmatically when a particular column value(using combobox) of the same row is changed.I need to change this on event cellEditEnded.
Please note that I need to change celleditingtemplate combobox to textbox not celltemplate textblock .
This my Column where I need to take the decision of its combo box selected value.

I am not sure if this would remedy the issue but you likely could nest a grid within that cell which would then be home to a stack panel which has a combo box and a text box (which is seen is set to the previous selection). Basically your selection could then dictate which portion of the stack panel is visible and thus both are in the same cell but only active based on the selection in the combo box.