Click here to Skip to main content
15,887,404 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I wanted to show daily calender in grid view. What I wanted is to build custom calender in gridview starting from and ending to the date that admin of the system enters. For instance, if admin enters start date as 1950 and end date as 2050, then calendar of 100 years is to be build. This also mean for a year, 365 rows is to be created so total of 35600 rows is required. Also, on each day, an event like holiday can occur which is also to be included in grid view. I wander what will the impact of this be on the speed and performance of system. if possible, is there alternative way to do this thing is same way!!!
Thanks in advance
Posted
Comments
CHill60 30-Jun-14 19:41pm    
Concern yourself less with the performance and speed as to the how you would do this in the first place. One of the biggest mistakes new programmers make is to worry about performance when often it isn't necessary. 35600 rows sounds like a lot but it is not. A user trying to look at 35600 rows IS an issue. Think about paging and filtering

1 solution

If you relly wanna do this way, i think the best solution is paging and determine what data user wanna view.

Example, the range is from 1950 to 2050 (100 years), just add a list box so user can chose which year they wanna view (list box items are 1950, 1951 ... 2050). When user chose year, load data of this year to gridview, if you wanna increase performance, search google how to paging grid view, so the process will be faster.
 
Share this answer
 
Comments
Codes DeCodes 6-Jul-14 2:51am    
thanks nguyen..

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