开发者

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 ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜