Hello,
I have an async method LoadDataAsync,
in this method I want to show a loader over the DataGridView while the data is loading,
I saw a previous similar question but I wanted to ask more details,
The advised solution is to call Application.Update():
this.dataGridView1.ShowLoader = true;
Application.Update(this.dataGridView1) //Call
But, I saw that we can also call: this.dataGridView1.Update()
So which is the correct and recommended approach?
Thanks!
Hi Ali,
Application.Update () can take any Wisej object as parameter and the result is always the same:
The client syncs with the server. So this is the recommended approach to update the UI after a background task.
The 2nd call is totally unrelated to this and cannot be used as a replacement for the 1st call.
Best regards
Frank
Please login first to submit.