Update DataGrid.cs

Make sure the update is on UI thread.