DataGridView Filter a BindingSource with a List of object as DataSource

后端 未结 3 1366
长发绾君心
长发绾君心 2020-12-14 03:23

I\'m trying to filter a BindingSource with a BindingList as Datasource. I tried BindingSource.Filter = \'Text Condition\' But it didn\'t work, nothing happens, the data on s

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 04:07

    I think it is because the BindingSource doesn't know what type of data it is filtering. Once a data is converted to dataset into columns and rows, filter can run. Because your datasource is a class, it can't do the automatic filtering.

提交回复
热议问题