The Modern Table control in Power Apps shows incorrect behavior when using a Collection as the data source. When the table contains more than 25 items, the control begins virtualizing rows. After scrolling down, selecting a previous loaded row triggers the OnSelect event, but both Selected and SelectedItems return empty.
An important detail:
This indicates that the Modern Table loses the reference to earlier batches of data when new batches are loaded during scrolling.
Expected behavior:
-
Selecting any row should populate Selected and SelectedItems with the correct record
-
Virtualization should not break the link between UI rows and the underlying Collection
-
Collections should behave consistently regardless of scrolling position
Actual behavior:
-
Items in the currently visible batch work correctly
-
Items from earlier batches (scrolled out of view) return:
-
The issue occurs only when using a Collection as the data source or when I filter a SharePoint Online list without delegation (like inline text search).
Steps to reproduce:
-
Create a Collection with more than 30 items
Example:
ClearCollect(colTest, YourDataSource)
-
Insert a Modern Table control
-
Set Items to the Collection (e.g., colTest)
-
Scroll down to load additional items
-
Select a row from the newly loaded items → works
-
Scroll back up and select a row from the earlier items → SelectedItems is empty
Impact:
This issue makes the Modern Table unreliable for any scenario involving Collections, especially when using them for filtering, sorting, pagination, or offline data. Since Collections are widely used in Canvas Apps, this significantly limits the usability of the Modern Table control.