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)
精彩评论