Home Forums WinForms controls Xceed Grid for WinForms Filter grid from "type ahead" textbox

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15134 |

    Is there a way to filter based on the changing contents of a textbox, so the filtering changes as the users type? With the standard M$ datagridview, I used this code strStoreFilter is set in the textchanged event of the textbox):

    Sub FilterGrid()
    Dim strFilter As String = “”

    If strStoreFilter <> “” Then
    strFilter = “StoreName Like ‘%” + strStoreFilter + “%'”
    End If

    dvLookup.RowFilter = strFilter

    End Sub

    Imported from legacy forums. Posted by Phil (had 1992 views)

    User (Old forums)
    Member
    Post count: 23064

    You could try the exact same code. I think it will probably work just fine.

    Imported from legacy forums. Posted by Tommy (had 3064 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.