Reputation: 6338
I have a Datatable dt
.
I fill dt
like this - adapter.Fill(dt)
I want to learn if there is an event(or a method) which
helps me to know if all data loaded into dt
.
Like DataBindingComplete
event for DataGridView
.
Upvotes: 0
Views: 697
Reputation: 7973
You can check if DataTable
is null, but you can't check if all data are loaded into dt
(this depends on which query you have done). Then, according to my knowledge, Datatable.Fill()
is a synchronous method.So you know it has finished because the method returns to you. If it didn't "finish", it would have thrown an exception.
Upvotes: 1