[VB.NET]combobox数据绑定
2008-12-28 14:05
309 查看
<script type="text/javascript"><!--
google_ad_client = "pub-8333940862668978";
/* 728x90, 创建于 08-11-30 */
google_ad_slot = "4485230109";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
combobox数据绑定
我用两个comboBox,一张表。表里有名称和保护类型
,我想做到:点击combobox1下拉菜单中的某项,即名称。则在combobox2的下拉项中就会显示与combobox1中选的项相关的东西。即与上述名称相关的保护类型。
谢谢~~~~
如果有代码更好
__________________________________________________________________________
这种不就是根据combobox1选中的值作为条件差数据绑定到combobox2吗?
难吗?
我没代码~~
__________________________________________________________________________
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
这里根据ComboBox1.SelectedText or ComboBox1.SelectedValue再去做查询绑定ComboBox2的内容
End Sub
__________________________________________________________________________
相关文章推荐
- [VB.NET]winform ComboBox数据绑定问题
- VB.Net自己写的一个控件:ComboBox下拉列表中显示多列数据(可以绑定数据表)
- VB.NET数据源与ListBox,ComboBox,TextBox的数据绑定
- DataTable绑定Repeater控件中的数据(vb.net)
- [转]VB.NET中怎样为listview绑定数据
- [VB.NET]comboBox控件下拉栏里添加多条数据
- VB.Net,WinForm中层次数据绑定TreeView的实现
- VB.NET中层次数据绑定TreeView的实现
- [VB.NET]数据传递,绑定问题?
- [VB.NET]关于datagridview数据绑定菜鸟问题!!
- vb.net 教程 8-1 简单数据绑定 1
- 解决:VB.NET程序中 datagridview 多次绑定出现 的“不能在数据绑定的 DataGridView 控件上设置 ColumnCount
- 解决:VB.NET程序中 datagridview 多次绑定出现 的“不能在数据绑定的 DataGridView 控件上设置 ColumnCount
- vb.net 教程 8-1 简单数据绑定 2
- vb.net中combobox与数组绑定
- VB.NET中层次数据绑定TreeView的实现
- vb.net合伙数据库access(二)——数据绑定控件成功
- vb.net 教程 8-1 简单数据绑定 3
- 解决:VB.NET程序中 datagridview 多次绑定出现 的“不能在数据绑定的 DataGridView 控件上设置 ColumnCount
- vb.net ComboBox 绑定数据字段