Hi Mehdi,
Well, I'm not sure which problem I have either. If I can get all my info into one grid then I don't have to worry about the page layout. Let me tell you what I have going on. I have two tables, a tblDateTime and a tblDetail. they look like this
tblDateTime:
Date
Timeslot
isslotfilled
nameinslot
then
tbldetail:
StartTime
EndTime
Trainername
Clientname
Datetime
lets say I have a three hour workday ( wouldn't that be nice ) then for each date in tbldatetime there would be three records
1/1/2004 7:00
1/1/2004 8:00
1/1/2004 9:00
1/2/2004 7:00
and so on
the istheslotfilled field says how many apointments there are scheduled for the timeslot if it has reached it's limit it returns "filled"
when you click on one time it opens the detail window which creates a new record for date,time,and next available slot number and then you enter the details like client name and what time session ends.
so that is the breakdown ( somewhat simplified for clarity ). If I want to see how many available slots there are per time for one day, no problem right just get a datareader for that date. However, I need a week view. if I do an sqlstatment for between these dates I get multiple records thus a long (vertical) datagrid. What I want is the basic outlook, act, whatever scheduler weekview. What It looks like I'm reduced to is having 7 datagrids with 7 seperate datareaders (or as dataset with tables).
Any idea's either on the main topic or otherwise would be greatly appreciated. If anything is unclear please let me know
Thanks
Raif
|