- How to avoid my form to freeze (and the whole application) while waiting for the results to populate my table.
- Task.Factory.StartNew(
- () =>
- {
- var object = //Populate your grid
- this.yourXtraGrid.BeginInvoke(new Action(() =>
- {
- this.yourXtraGrid.ItemSource = object ;
- }));
- });