This example shows how to implement the grid's load-more functionality - when a user scrolls to the bottom of the grid, a set of new data items is added to the end of the grid. Data items for each subsequent load (10 new orders) are generated randomly in code. The maximum number of loads a user is allowed to perform is 3. The total summary displays the count of data items currently loaded to the grid (which is automatically updated after each load).
- Set the DataGridView.IsLoadMoreEnabled property to true to enable the grid's load-more functionality.
- Create a command to be executed when a user scrolls to the bottom of the grid. Set the DataGridView.IsRefreshing property to false after data is loaded to hide the loading indicator in the grid.
- Bind the DataGridView.LoadMoreCommand property to the created command.