I've datagrid view in form which is dynamically populating data using DataView technique through this code:
DV = New DataView()
DV.Table = ds.Tables("rsSearch")
FlxSearch.DataSource = DV
but i want to remove previous column structure. similarly, when i call this grid with same dataset
this is happening:
I've tried many solutions of clearing and disposing DGV and DataView but couldn't achieve desired result. any suggestions for how to remove previously filled column structure when loading new Data?