Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a data grid with 1500+ records, while loading the datagrid limit the row to 100 and load. after the scroll happens remaining 100 should load and process to go so on.

What I have tried:

i have tried to limit the rows but the datagrid display only 100 rows. remaining all are not loaded.
Posted
Updated 28-May-19 1:30am

1 solution

The term you are looking for is "Paging" - see this Code Project Article Paging WPF DataGrid[^]
 
Share this answer
 
Comments
Member 10738387 28-May-19 8:02am    
For Paging, Manually user need to select each page to view the Grid data, i'm looking for like when page loads first 100 records should load into Grid. after when user scroll down remaining records should load by 100.
CHill60 28-May-19 8:13am    
No. Paging is (also) applicable when a user scrolls down and the principle of determining which records to retrieve/display is exactly the same. You just need to adapt the code so that it picks up the scroll event instead of button click or page select.
Now that you have the correct terminology there are other examples on Google[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900