如何使用C#将动态数据源绑定到列表框? [英] how to bind dynamic data source to a listbox using c#?

查看:49
本文介绍了如何使用C#将动态数据源绑定到列表框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
我有以下内容:
根据查询条件显示数据的列表框,查询像这样动态更改;

Hi!!
I have the following:
listbox displaying data depending on query condition the query dynamically changed like this;

disease_name                      percentage
a                                    24%
b                                    96%
c                                    50%


然后根据用户输入动态更改行数,我如何将这些数据绑定到我的列表框中(或者如果您有列表框以外的其他选项),请帮忙!


then the number of rows is dynamically changed depend on user input how can i bind this data in my list box(or if u have other option other than list box) please help!!

推荐答案

我猜你是在问Windows窗体,

http://msdn.microsoft.com/en-us/library/w67sdsex.aspx [ ^ ]
I guess you are asking about windows forms,

http://msdn.microsoft.com/en-us/library/w67sdsex.aspx[^]


这篇关于如何使用C#将动态数据源绑定到列表框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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