DataGridViewAutoFilter RRS feed

  • Question

  • HI

    I'm using msdn DatagridviewAutofilter. 

    I have a Button (Filtra) on the form to enable DataGirdViewAutofilter for each column with this code

    Private Sub CmdFiltra_Click(sender As Object, e As EventArgs) Handles CmdFiltra.Click

    If FlagFiltro = False Then 'Inserisci tasto filtro sulle colonne For Each col As DataGridViewColumn In DGV.Columns col.SortMode = DataGridViewColumnSortMode.Programmatic col.HeaderCell = New ClasseDataGridViewAutoFilterColumnHeaderCell(col.HeaderCell, BS1) Next FlagFiltro = True Exit Sub End If end sub

    I would like to disable the DataGridViewAutofilter when I click again on the Button. How to disable the DataGridviewAutofilter for each column ?

    Sunday, April 8, 2018 5:55 PM

All replies