-
Sep 18th, 2024, 01:03 AM
#1
Thread Starter
Member
-
Sep 18th, 2024, 07:47 AM
#2
Re: How can i display timetable using sqlserver with the time appearing as headers
There are some third-party data grid controls that allow for some fancy formatting. This article goes over some of the more popular options
https://visualstudiomagazine.com/art...llections.aspx
-
Sep 18th, 2024, 03:40 PM
#3
Re: How can i display timetable using sqlserver with the time appearing as headers
Essentially what you're wanting to create is a pivot table, but it's not as simple as that because you want to block some time out entirely (e.g. 10:30 - 11:30 you want to display BREAK vertically.
Leaving aside the custom time blocks, what language are you doing this in. Did you want to do this on the front-end using JavaScript (or some flavor thereof), the back-end using VB.NET or C#, or the database layer using SQL?
The concept is the same, but the implementation will vary depending on where you want the data to be manipulated.
-
Sep 18th, 2024, 10:28 PM
#4
Thread Starter
Member
Re: How can i display timetable using sqlserver with the time appearing as headers
 Originally Posted by dday9
Essentially what you're wanting to create is a pivot table, but it's not as simple as that because you want to block some time out entirely (e.g. 10:30 - 11:30 you want to display BREAK vertically.
Leaving aside the custom time blocks, what language are you doing this in. Did you want to do this on the front-end using JavaScript (or some flavor thereof), the back-end using VB.NET or C#, or the database layer using SQL?
The concept is the same, but the implementation will vary depending on where you want the data to be manipulated.
Iam currently using sqlserver and asp.net vb
-
Sep 19th, 2024, 08:28 AM
#5
Re: How can i display timetable using sqlserver with the time appearing as headers
And where would you like to perform the business logic: front-end (JavaScript), back-end (VB.NET), or database (SQL Server)?
-
Sep 19th, 2024, 08:43 AM
#6
Re: How can i display timetable using sqlserver with the time appearing as headers
Adding to dday:
He has "fixed" Time-Slots (=Column-Headers) and "fixed" Day-Slots (=Row-Headers).
His business-Logic (wherever he implements it) must fit the retrieved Data into its correct slot inside this 2D-Matrix.
Meaning: He has to check the retrieved record for
1) which Day to determine the Row
2) at what Time to determine which Columns (PLURAL), since the time-slots in his Query overlap the "fixed" time-slots
3) How to proceed if a time-slot in the record overlaps into a break/Lunch time-slot (Monday 10:30 - 11:20)
4) How to display "partial" time-slots (look at Monday Course INF214)
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|