Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public delegate DataGridUpdateDelegate(ref DataGrid datagrid);
  2.  
  3. public static void DataGridUpdate(ref DataGrid datagrid)
  4. {
  5. datagrid.Items.Refresh();
  6. }
  7.  
  8. private void MyDataGrid_Loaded(object sender, RoutedEventArgs e)
  9. {
  10. ...
  11. DataGridUpdateDelegate _tmpDelegate = DataGridUpdate;
  12. _tmpDelegate.BeginInvoke(ref MyDataGrid, nul, null);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement