Grid repainting

Is there a way to prevent the grid repainting during large changes and then having a single repaint after the changes are complete? 

1 Reply

AR Arulpriya Ramalingam Syncfusion Team March 14, 2018 02:56 PM UTC

Hi Andy, 

Thanks for contacting Syncfusion support. 

We have analyzed your scenario at our end. By default, the changes will be updated to data source immediately and the changes will be reflected in the grid since, the grid is refreshed for ListChanged and PropertyChanged actions. And, the grid does not have support to restrict painting when the list changing occurred refresh the grid after the changes are completed or any extensibility to pause/resume the painting to improve the performance. However, we would suggest you to, bind a temporary list to the grid while updating the changes to BindingList and rebind the modified data source to the grid by using the below code, 

Code example 

//To initialize and bind the temporary list to grid. 
BindingList<Data> tempList = new BindingList<DataGrid.Data>(); 
gridGroupingControl1.DataSource = tempList; 
//To update the changes in list 
dataSource[4].CategoryID = "2"; 
dataSource[4].CategoryName = "Category 43"; 
dataSource[4].Description = "Desc 43"; 
//To bind the modified list. 
gridGroupingControl1.DataSource = dataSource; 

Please let us know that, if we misunderstood your use case. 

Regards, 
Arulpriya 


Loader.
Up arrow icon