开发者

allow gridlookupedit control to search only after typing two characters

开发者 https://www.devze.com 2023-03-08 07:13 出处:网络
I am using third party tool \"gridlookupedit\" of DevXpress in my application. I have loaded the gridlookupedit control on the key Down event of it. Now if i type a character \"A\" the dropdown gets l

I am using third party tool "gridlookupedit" of DevXpress in my application. I have loaded the gridlookupedit control on the key Down event of it. Now if i type a character "A" the dropdown gets loaded with all values starting with "A". Now a step ahead i want to load the GridLookUpEdit only after two characters. for rg: the control must load values only when user types any two characters. If user types "A" it should not loa开发者_高级运维d. if user types "Ab" then the control should be loaded by the values starting with "Ab". how can i do this?


On your Key Down event I guess you've got some code that populates gridlookupedit? If so just put a if around your code to only update if the length is grater than 1

If gridlookupedit.Length > 1 Then

' Update List

End If
0

精彩评论

暂无评论...
验证码 换一张
取 消