【问题标题】:How to Get the SelectedValue of Combox inside an DataGridTemplateColumn in wpf Datagrid?如何在 wpf Datagrid 的 DataGridTemplateColumn 中获取 Combox 的 SelectedValue?
【发布时间】:2011-06-24 03:03:42
【问题描述】:

我有一个 DataGridTemplate 列,里面有一个 Combox。当他们点击 DataGrid 旁边的保存按钮时,我想在特定行中获取一个组合框的选定值。

【问题讨论】:

  • 最好的方法是在选择值发生时跟踪它。用户必须单击选定的行和列来存储值。

标签: wpf datagrid combobox datagridtemplatecolumn


【解决方案1】:

这不是一个很好的方法,因为您无法直接访问行或从选择中可视化它们的控件。我建议您使用事件来表示应该提交更改或类似的东西。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-06-12
    • 1970-01-01
    • 1970-01-01
    • 2013-06-30
    • 2013-12-13
    • 2013-01-28
    • 2014-12-02
    • 1970-01-01
    相关资源
    最近更新 更多