SfDataGrid columns are not refreshed correctly

Hi,

I am creating the SfDataGrid columns inside BindingContextChanged because the columns depend on the ItemsSource data.

The issue is that the columns are not refreshed correctly right after they are created. If I interact with the grid, for example by moving or scrolling the data, the grid refreshes and the columns are displayed properly.

How can I force the grid to start already refreshed correctly, without requiring user interaction?

Regards,

Diego


1 Reply

MM Muthukumar Madasamy Syncfusion Team March 19, 2026 07:03 AM UTC

Hi Diego,

Thank you for the detailed explanation.

We checked the same scenario on our side using the following versions:

  • .NET MAUI Controls: 9.0.120 and 10.0.50
  • SfDataGrid: 33.1.44
  • Platforms tested: Windows, macOS, and iOS on .NET 9.0 and .NET 10.0
The issue did not occur in any of these environments. We have also prepared a simple sample and attached it for your reference.

In your case, since the columns are created inside BindingContextChanged, the layout is not fully refreshed at that moment. The grid updates only after a user interaction such as scrolling.

To make the DataGrid load correctly from the beginning, please refresh the grid programmatically immediately after adding the columns.

You can follow the official Syncfusion guidance here: Programmatically refresh the .NET MAUI DataGrid | Syncfusion

This ensures the grid re-measures and redraws before the user interacts with it.

Please update to the latest DataGrid version and confirm. If the issue still persists, feel free to share your sample. We’ll be happy to assist.

Best Regards,
Muthu Kumar Madasamy.

Attachment: DataGridSample_1e733f19.zip

Loader.
Up arrow icon