VB.net Advanced Data grid view filter

117 Views Asked by At

Hi all i am using the advanced data grid view as per text using the filter event the examples that i have seen are using a database but the data grid view is filled with data at runtime.

so I tried creating a binding the gridview being the data source

Dim obinding As New BindingSource

obinding.Datasourse = AdvancedDataGridView1.DataSource

obinding.Filter = AdvancedDataGridView1.FilterString

but the filter is not working

Any and all help would be appreciated thanks

1

There are 1 best solutions below

4
nbk On

You need to add the datagridview datasource to the bindungsource

Dim obinding As New BindingSource

obinding.DataSource = AdvancedDataGridView1.DataSource

obinding.Filter = AdvancedDataGridView1.FilterString