【问题标题】:How to read combo box in WPF DataGridEditTemplate如何在 WPF DataGrid 编辑模板中读取组合框
【发布时间】:2012-05-28 07:53:23
【问题描述】:

我必须在 wpf DataGrid edititemtemplate 中的窗口加载事件中将项目源绑定到 ComboBox。那么,如何从代码中调用 ComboBox 来绑定数据呢?

【问题讨论】:

    标签: wpf data-binding datagrid combobox


    【解决方案1】:
    comboBox.SelectionChanged += (a, b) =>
    {
        comboBox.SelectedValue.ToString();
    };
    

    【讨论】:

      猜你喜欢
      • 2013-11-03
      • 2014-12-03
      • 1970-01-01
      • 1970-01-01
      • 2012-05-05
      • 1970-01-01
      • 2015-10-07
      • 2023-03-05
      • 1970-01-01
      相关资源
      最近更新 更多