Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
ComboBox autofiltering items - using RowFilter
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guest, post: 6929057"] Thanks a lot Henrry! the code refined: Private Sub ComboBox2_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox2.KeyUp If e.KeyCode >= Keys.A And e.KeyCode <= Keys.Z Or e.KeyCode = Keys.Back Or e.KeyCode = Keys.Delete Then Dim strTemp As String = ComboBox2.Text If strTemp.Trim.CompareTo(String.Empty) = 0 Then dtvCBOCliFor.RowFilter = String.Empty Else Dim strRowFilter As String = String.Concat("NomeRazSocial LIKE '%", ComboBox2.Text, "%'") dtvCBOCliFor.RowFilter = strRowFilter End If ComboBox2.Text = strTemp ComboBox2.SelectionStart = strTemp.Length ComboBox2.DroppedDown = True End If End Sub [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
ComboBox autofiltering items - using RowFilter
Top