Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Has anyone developed a timesheet application that shows a grid of biweekly payroll dates and allows entry into each day for a given row of pay type codes? If so, I would like to see how you created the gridview and retrieve/store the data into a database. I would like to not have to store the payroll dates in a table, rather have the query dynamically generate them for a given date selected. If you have done something similar, would you please share the code and/or concepts involved in writing an asp.net application for timesheets?
Posted

1 solution

I would normally bind to a collection of objects rather than a database result set - especially in this sort of case - so create a class TimesheetEntry with properties of Date and Type and Hours or whatever else you need.
Create a collection of these objects, setting the date programmatically in a loop
Bind to the collection
 
Share this answer
 

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