c# datagridview help
I have a form showing a gridview. The data is bound dynamically, depending on several options that the user clicks on. The populating data works fine (bound fro开发者_运维百科m dynamically created datasets). The problem lies, when I want to switch between displaying data whereby the tables/datasets contain different layouts. The gridview keeps showing the previous layout.
How would I unbind all data to the gridview, so that I can then display the brand new table?
Thanks.
Set datasource = null ?
精彩评论