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

    Country:
    United States
    Joined:
    Aug 7, 2010
    Messages:
    12,048
    Likes Received:
    258
    Location:
    Joliet, IL U.S.A.
    Hi!<br/>
    <br/>
    How do I filter my DataGridView with multiple checkboxes names?
    I want to filter in which region the suppliers are located. ex. RegionTable.Regionrow.
    <br/>
    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/>
    <br/>
    This is what i have so far: (only able to filter with one checkbox)<br/>
    If RegionEuropeCheckBox.Checked = True Then<br/>
    Try<br/>
    Me.SupplierTableAdapter.FillByRegion(Me.TraficatorSet.Supplier, RegionEuropeCheckBox.Text)<br/>
    Catch ex As System.Exception<br/>
    System.Windows.Forms.MessageBox.Show(ex.Message)<br/>
    End Try<br/>
    End If<br/>
    <br/>
    Thanks in Advance!<br/>
    Roberth M

    View the full article
     

Share This Page