De-select SelectedItems on different pages

Hello everyone,


I am using the sfDataGrid control with sfDataPager as ItemSource. The grid has the SelectionModeExtended.” When I click on a row within a page, the previous selection is cleared, as expected. However, if I select a row on page 1, for example, then go to page 2 and select a row there as well, the selection on page 1 remains. This is unexpected.

Both rows are also contained in the SelectedItems property.

How can I deselect the selections on other pages?


1 Reply

RM Rabina Murugan Syncfusion Team November 3, 2025 08:14 AM UTC

Hi Fabian,

 

We have investigated the reported scenario and understand that you are using SfDataGrid with SfDataPager as the ItemsSource and have set SelectionMode to Extended, and you observed that when selecting a row on page 1 and then navigating to page 2 to select another row, the selection from page 1 remains and both rows appear in SelectedItems.

 

We tested this scenario in the latest version (31.2.4) using UI selection, programmatic selection, and SelectedItems binding, but were unable to reproduce the reported behavior.

 

To investigate further, Please share the following details:

 

  1. Please share the product version you are currently using.
  2. Please share the DataGrid settings you are using.
  3. Any customization made related to selection.
  4. Kindly replicate the scenario in the attached sample and get back to us.

 

Gif Illustration:

 

 

 

Find the sample demo in the attachment.

 

This information will help us to investigate further and provide an accurate solution.

 

Regards,

Rabina M


Attachment: SfDataGridPageSelection_eee6bac9.zip

Loader.
Up arrow icon