private void Reload() { var dtReader = new DataTableReader(testCaseCollectionManager.Scope.Content); //Reset the state of the DataTable //Remove the Sort Order or you'll be in troubles when loading the datatable TestCases.DefaultView.Sort = String.Empty; TestCases.Rows.Clear(); TestCases.Columns.Clear(); TestCases.RejectChanges(); //Load it TestCases.Load(dtReader, LoadOption.PreserveChanges); OnPropertyChanged("TestCases"); //Take care of variables Variables.Clear(); foreach (var v in testCaseCollectionManager.Scope.Variables) { Variables.Add(v); } if (VariableSelectedIndex < 0 && Variables.Count > 0) { VariableSelectedIndex = 0; } }