开发者

Refreshing a DataGridView set up in the designer

I saw this question asked a million times and none of the answers looked right. I hope someone can help me.

I have a DataGridView with a TableAdapter, BindingSource a开发者_StackOverflownd DataSet objects all created from the designer.

All I want to do is simply reload the data from the database since I change it by another way, and I cannot find any solution to this.


Did you tried BindingSource.ResetBindings Method


Finally I found a way myself, hope it helps others, and If you know a better way feel free to correct me:

dataAdapter.Fill(dataSource.TableName)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜