数据集和datagrid和datagridcombobox如何绑定它们? [英] dataset and datagrid and datagridcombobox how to bind them ?

查看:60
本文介绍了数据集和datagrid和datagridcombobox如何绑定它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用DataSet和DataGrid.

我像这样绑定它们:

I''m using a DataSet and DataGrid.

I bind them like this :

ObjDataAdapter.Fill(ObjDataSet);
ObjDataGrid.ItemsSource = ObjDataSet.Tables[0].DefaultView;



我想将DataGridComboBoxColumn添加到ObjDataGrid并在每行中显示一个ComboBox.



I want to add DataGridComboBoxColumn to ObjDataGrid and show a ComboBox in each row . how can I do that in wpf?

推荐答案

i have an idea . split ObjDataSet columns and add them manually to OJDataGrid . at the end add
DataGridComboBoxColumn. does anybody knows how to do that?


这篇关于数据集和datagrid和datagridcombobox如何绑定它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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