如何绑定组合框中的值...? [英] How to bind the values in combo box ...?

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

问题描述

如何绑定组合框中的值...?

解决方案

这是一个偏离主题

如果你想再次知道这请看以下链接



ComboBox.DataSource物业

将数据集绑定到C#中的组合框

1。在设计视图中点击组合框的智能选项(右侧的小箭头),然后选择编辑项目



2.运行时间使用

 comboBox1.Items.Add(  Value1) ; 
comboBox1.Items.Add( Value2);


How to bind the values in combo box ...?

解决方案

It's a off topic
if you want to again know this see the following links

ComboBox.DataSource Property
Bind a dataset to a combo box in C#


1. In design view click on smart option (a small arrow just at right side) of combobox and then select 'Edit Items'

2. Run time use

comboBox1.Items.Add("Value1");
            comboBox1.Items.Add("Value2");


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

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