如何使用c#.net绑定wpf中的组合框 [英] how to bind combo box in wpf using c#.net

查看:71
本文介绍了如何使用c#.net绑定wpf中的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想使用c#通过数据库绑定组合框如何绑定值,网格视图中的combox存在单元格可以指导我或发送片段

Hi,

I want to bind combo box using c# through database how can i bind values , The combox presents in grid view cell can u guide me or send snippets

推荐答案

参考 - WPF中DataGrid中的ComboBox [ ^ ]以获得一些想法。
Refer- ComboBox in DataGrid in WPF[^] to get some idea.


您只需按照这两篇文章学习如何在WPF组合框中绑定数据:

与Comboboxes一步一步的WPF数据绑定 [ ^ ]

在WPF中绑定组合框 [ ^ ]



然后看看在数据网格组合框的情况下如何绑定它:

将值绑定到DataGrid行中的ComboBox [ ^ ]
Simply you can follow these 2 articles to learn how to bind data in a WPF Combobox:
Step by Step WPF Data Binding with Comboboxes[^]
Bind combobox in WPF[^]

Then see how to bind it in case of a datagrid combobox:
Bind values to ComboBox in DataGrid row[^]


这篇关于如何使用c#.net绑定wpf中的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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