如何在selectedindex cange之后修复组合框值 [英] How to fixed the combobox value after selectedindex cange

查看:56
本文介绍了如何在selectedindex cange之后修复组合框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows窗体应用程序中,我正在使用两个组合框。第一个组合框绑定来自数据库的数据。现在当从第一个组合框中选择一个值时,所选择的值被反映到第二个选择框。

表示

第一个组合框名称 - CenterName

- 选择 -

Deorali

甘托克

Namchi



第二个组合框名称 - 区





当我选择CenterName(Deorali)然后区(东)是来自SelectedIndexChange的帮助和我保存的一些信息。



但保存之后。我看到我第一个组合框 - 选择 - 项目来了然后我再次选择CenterName(Deorali)。我不知道。



所以我想知道保存后如何修复该值(Deorali)。

当我想要更改时,CenterName永远不会改变。

In the windows form application i am taking two combobox. 1st combobox bind data from data base.now when a value is selected from 1st combobox with this selected value is reflected to 2nd selected box.
means
1st combobox name--CenterName
--Select--
Deorali
Gangtok
Namchi

2nd combobox name--District


when i select CenterName(Deorali)then District(East) is come with the help of SelectedIndexChange and with the some information i save it.

but after save it. i see that i the 1st combobox --Select-- item is come for then i again select CenterName(Deorali).which i dont.

so i want to know how to fixed that value (Deorali) after save.
CenterName never change when i want then change.

推荐答案

此演示将指导你....



http://www.access-programmers.co.uk/forums/showthread.php?t=178468 [ ^ ]
this demo ll guide u....

http://www.access-programmers.co.uk/forums/showthread.php?t=178468[^]


这篇关于如何在selectedindex cange之后修复组合框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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