2011-03-07 64 views

回答

1

你想在哪里找到你的控制..?只有在网格进入编辑模式时才会加载CellEditing模板。

检查以下链接,看看它是否有助于

DataGrid: Help accessing a control defined in a CellEditingTemplate

http://social.msdn.microsoft.com/Forums/en/wpf/thread/e4cc93eb-9ded-4eb1-a7d2-cedda7eedb70

DataGridTemplateColumn with DatePicker requires three clicks to edit the date

+0

嗨感谢您的答复。我正在执行DataGridTemplateColumn的实现“删除”功能,而无需进入编辑模式。当用户点击“删除”键时,我想清除我的DataGridTemplateColumn中的内容。我知道“CellTemplate”里面会有一个“TextBlock”,而“CellEditingTemplate”里面会有一个“TextBox”。谢谢 – Jing 2011-03-07 21:24:01