title: Filling datagrid with async await method
body: <p>my english is not very good sorry for that but i try to tell my problem perfectly </p>
  
  <p>here is what i have for loading datagrid</p>
  
  <pre><code>private Task Loading(Func&lt;string&gt; SearchStringForUser)
  {
  
      return Task.Run(() =&gt;
      {
  
          var query = database.Database.SqlQuery&lt;VW_Users&gt;("select * From VW_Users where 1 = 1 And GymID = " + PublicVar.ID + " " + SearchStringForUser());
          var user = query.ToList();
          Dispatcher.InvokeAsync(() =&gt;
          {
              DataGrid_User.ItemsSource = user;
          });
      });
  }
  </code></pre>
  
  <p>first things first i have a InvokeAsync But it not work perfectly i mean my program getting hang when loaded data is going to list.
  Anyway , its not my main problem but if someone knows what is that reason can point to it
   but my main problem is when i have +200 row . program dont load all of dates for 30 secends or more . looks like my program datagrid is empty for 30secends or more.</p>
  
  <p>i want to load datas by 10 rows 10 rows , i mean i want to fill my datagrid when 10 rows loaded, after next 10 rows,
  like
  10
  20
  30
  40
  ....
  with this my datagrid will never empty
  and data will loaded slowly 
  can someone tell me the best way to do that?</p>