无法在组合框中添加项目 [英] unable to add items in combobox

查看:78
本文介绍了无法在组合框中添加项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个基于窗口的程序,其中我在网格中添加一个组合框

但我不知道如何在其中添加项目

< br $> b $ b

plz ............ help

i am running a window based program in which i add a combo box in a grid
but i don''t know how to add items in it


plz ............help

推荐答案





有两种方法,您可以在设计项目中添加项目。选择Items属性并添加到集合中。或者,如果要从数据库填充值,请获取数据表并设置datasource = Dtatatable。并将显示成员和价值成员设置为它。





RKS
Hi,

There are two ways, Either you can add items at design items. Select Items property and add in collection. Or if you want to populate value from database the get a datatable and set the datasource= Dtatatable. And set Display member and Value Member to it.


RKS


这篇关于无法在组合框中添加项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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