listbox bind datasource, refresh data
来源:互联网 发布:射雕同人之悦与君知 编辑:程序博客网 时间:2024/06/08 12:16
1, set the binding source, select the datasource from system business object
this.listBox1.DataSource = this.iLicenseKeyBindingSource;this.listBox1.DisplayMember = "LicenseKey";this.listBox1.ValueMember = "LicenseKeyId";iLicenseKeyBindingSource.DataSource = Licenses;
2. set the datasource of the binding source,
Important: it is different from normal databinding, do not set the DataSource of your BindingSource, set the DataSource of the ListBox.DataSource.
//iLicenseKeyBindingSource.DataSource = Licenses; listBox1.DataSource = Licenses; // Licenses is a list of your business object
3. change the list, refresh the listbox
Licenses.Add(new LicenseKey());((CurrencyManager)listBox1.BindingContext[Licenses]).Refresh();
- listbox bind datasource, refresh data
- How to bind listbox to data dynamically
- jquery refresh table data
- ListBox与Datasource 实时更新的问题
- Silverlight Data Bind
- oracle - bind variable data
- data-bind 绑定
- data = (DataSource)conEnv.lookup("jdbc/mysqlHaoBookShop");
- activeReport3.0 Bind data demo
- Data Volume 之 bind mount
- kendo 数据绑定:data-bind
- data-ng-bind和data-ng-value
- refresh
- WinForm 的 ListBox 等类型控件的 bind
- DataSource
- DataSource
- datasource
- dataSource
- 关于WindowsXP
- DSP的Gel作用
- [转]解决PowerDesigner 相同字段名字
- 树状数组求逆序数
- python中获取主机名和当前时间
- listbox bind datasource, refresh data
- CodeForces 101D
- H263编解码在VS2005中结合opencv2.2的测试
- VirtualBox命令
- android-View实现游戏连连看
- 【dos BAT】关于DOS的批处理学习过程
- HDU 3724 Trie 树
- dirname $0
- C++ 之高效使用STL(查找算法的选择)