1. On Saturday September 3RD, 2016 this community will be shutdown permanently.

    The time has come to close this community. I no longer have any interest in Visual Studio programming and my efforts to find someone to take over the community has failed.

    If anyone is interested in acquiring the database contact me and I will make it available for you.

How to filter gridview with multiple checkboxes?

Discussion in 'Visual Basic .Net' started by DN Admin, Apr 20, 2012.

  1. DN Admin

    DN Admin Administrator
    Staff Member

    United States
    Aug 7, 2010
    Likes Received:
    Joliet, IL U.S.A.
    How do I filter my DataGridView with multiple checkboxes names?
    I want to filter in which region the suppliers are located. ex. RegionTable.Regionrow.
    And I have 4 different regions(checkboxes text name) I want to filter with. Compatible to use multiple choices in filtering.<br/>
    So. Checking 2 of the 4 regions and pushing the filter button should filter the gridview after checked checkboxes.<br/>
    I have tried different methods for 4 hours and search the net but can't find any good method.<br/>
    This is what i have so far: (only able to filter with one checkbox)<br/>
    If RegionEuropeCheckBox.Checked = True Then<br/>
    Me.SupplierTableAdapter.FillByRegion(Me.TraficatorSet.Supplier, RegionEuropeCheckBox.Text)<br/>
    Catch ex As System.Exception<br/>
    End Try<br/>
    End If<br/>
    Thanks in Advance!<br/>
    Roberth M

    View the full article

Share This Page