We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to improve performance when doing bulk changes in SfDataGrid?

Platform: Xamarin.iOS |
Control: SfDataGrid

The SfDataGrid refreshes the view, whenever a new item is added or removed to its collection. Thus, when you perform a bulk changes continuously it may appear like the performance is affected as the grid is refreshed when each item is added or removed. In order to overcome this performance lag SfDataGrid allows you to suspend the updates and resume it to refresh the grid at once.

The SfDataGrid.View.BeginInit method suspends the view updates and the SfDataGrid.View.EndInit method resumes the updates and refreshes the grid.

dataGrid.AllowLoadMore = true;
dataGrid.LoadMoreCommand = new Command(ExecuteLoadMoreCommand);
public async void ExecuteLoadMoreCommand()
    dataGrid.IsBusy = true;
    await Task.Delay(5000);
    dataGrid.IsBusy = false;
// ViewModel.cs
public void LoadMoreItems()
    for (int i = 1; i <= 50; i++)
        Collection.Add(repository.CreateItem(Collection.Count + 1));
// ModelRepository.cs
public Model CreateItem(int customerID)
    Model model = new Model();
    model.CustomerID = customerID;
    model.CustomerName = CustomerName[random.Next(10)];
    model.OrderID = random.Next(100, 500);
    model.ShipCountry = ShipCountry[random.Next(20)];
    return model;


Sample Link:

How to improve performance when doing bulk changes in SfDataGrid


2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile