如何在wpf的数据网格视图中访问数据网格com框? [英] how to access the data grid com box in data grid view in wpf?

查看:122
本文介绍了如何在wpf的数据网格视图中访问数据网格com框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在数据网格视图中访问数据网格com框?我想在组合框中填充动态值。给出一些示例代码。请

解决方案

通过XAML在WPF的DataGrid中的ComboBox [ ^ ]应该为您提供解决方案。



WPF Custom ComboBox [ ^ ]应该可以帮到你也好。



一堆教程这里 [ ^ ]可以帮助您入门。


 < span class =code-keyword><   DataGrid    >  
< DataGrid.Columns >
< datagridcomboboxcolumn x:name = comboNew xmlns:x = #unknown / >
< / DataGrid.Columns >
< span class =code-keyword>< / DataGrid >





代码落后:

  this  .comboNew.ItemsSource =  //  提供您的itemsource。 


how to access the data grid com box in data grid view?i want to fill the dynamic value in the combo box .give some example code.please

解决方案

ComboBox in WPF’s DataGrid through XAML [^] should provide you with a solution.

WPF Custom ComboBox[^] should help you out as well.

A bunch of tutorials here[^] could help you get started.


<DataGrid >
    <DataGrid.Columns>
        <datagridcomboboxcolumn x:name="comboNew" xmlns:x="#unknown" />
    </DataGrid.Columns>
</DataGrid>



code behind:

this.comboNew.ItemsSource=//give your itemsource.


这篇关于如何在wpf的数据网格视图中访问数据网格com框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆