Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to avoid my form to freeze (and the whole application) while waiting for the results to populate my table.
  2. Task.Factory.StartNew(
  3.     () =>
  4.     {
  5.         var object = //Populate your grid
  6.  
  7.         this.yourXtraGrid.BeginInvoke(new Action(() =>
  8.         {
  9.             this.yourXtraGrid.ItemSource = object ;
  10.         }));
  11.     });