Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To Datagrid or Not To Datagrid???

Status
Not open for further replies.

byrne1

Programmer
Aug 7, 2001
415
US
I hope to challenge you on this one. I'm creating a time entry system where I want to display a grid (whether it be a datagrid or HTML table or whatever) showing assigned tasks in the first column and then additional columns for Sunday, Monday, Tuesday, etc. I want the user to have the ability to edit any of the cell values (except the first column) so that they may enter or change time worked on a project for the given week.

Any ideas on how to accomplish this? Your thoughts and ideas are greatly appreciated!!
 
I did a similar project where I had a datagrid showing the presence in a room within the week.
The datagrid is your way to go and for the days use a bit solution

field: daysofweek
datatype: int

monday 1
tuesday 2
wednesday 4
thursday 8
friday 16
saturday 32
sunday 64

therefore if you need to update a selection for monday, thursday and friday you would add the values: 1 8 and 16 to give you your bit value of 25.
Then you can use the logic operator to make the changes and to check if a bit is selected.

I hope I have pushed you towards the right direction.
Daren J. Lahey
Just another computer guy...
FAQ183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
Support your forums TODAY!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top