简体   繁体   中英

DataGridView column filter using datatable as source

In c# I am trying to have column dropdown filtering while using a datatable as the datasource with an unknown number of columns and rows. All example and help I have found refers to a database with known column data but I am dealing with multiple databases and need to have a dynamic column filter. Just like excel or powerpivot would do. So if a database is changed and columns are removed or added it will still work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM