listbox selectedvalue [英] listbox selectedvalue

查看:181
本文介绍了listbox selectedvalue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本框,用于更改我绑定到列表框的数据视图的rowfilter属性。


当我更改文本时,会触发MyListBox.SelectedValueChanged。 / p>

但是一旦我输入了在列表中找不到的文本,并且selectedvalue被设置为null,下次我输入存在的东西时,过滤器会完成其工作并向我显示我在列表框中寻找单词的位置



MyListBox.SelectedValueChanged不再被解雇。


这个问题的原因是什么。


   提前致谢。


               Anoosh








解决方案

" 并显示我在列表框中找到的单词的位置"你的意思是在列表框中选择了这个
项目吗?


I have a textbox that changes the rowfilter property of a dataview to which I have bound a listbox.

when I change the text, MyListBox.SelectedValueChanged is fired.

but as soon as I enter a text that is not found in the list, and the selectedvalue is set to null, next time I enter something that exists the filter does its job and shows me the position of the word I'm looking for in the listbox

BUT

MyListBox.SelectedValueChanged is not fired any more.

what is the cause of this problem.

    thanks in advance.

               Anoosh

解决方案

"and shows me the position of the word I'm looking for in the listbox" do you mean that this item is selected in the listbox?


这篇关于listbox selectedvalue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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