如何在C#的下拉列表中更改selectedIndex的selectedIndex [英] How to get selectedIndex of selectedIndexchanged in dropdown list in C#

查看:803
本文介绍了如何在C#的下拉列表中更改selectedIndex的selectedIndex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我是这个论坛的新手...我有疑问,在使用下拉列表C#.net时,我们会给出所选项目的索引,但是如果我们手动选择该项目,那么我们如何获取该项目的索引?我正在获取以前的选定的索引..因为它不会更改当前选定项目的值...请尽快回复....提前谢谢....

Hi all,
I am new to this forum...i have query that while using dropdown list C# .net we give index of selected item but if we select the item manually then how can we get the index of that item??i am getting the previously selected index..as it does not change the value of currently selected item...pls reply ASAP....thanks in advance....

推荐答案

SelectedItemIndex属性将是当前所选项目的索引
The SelectedItemIndex property will be the index of the currently selected item


这篇关于如何在C#的下拉列表中更改selectedIndex的selectedIndex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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