Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#4.0
Hi friends,
I am doing a school management project.but unfortunately i struggle with designing a time table. I searched google for reference,but i didnt get desired result.please help me to design the timetable.
Posted 27-Sep-12 8:39am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Perhaps this[^] article would be a good starting point for you. Only once you understand what a relational database can you design something within it.
As far as your specific table structures, the basic point is to list out all the data you want to store and then break it down into relational bits until it is as normalized as it can get.
Sergey Alexandrovich Kryukov at 27-Sep-12 15:37pm
Good point, a 5.
The OP's main problem right now is mixing up the time table (data) and the UI representation, which is not good. I elaborated this in my answer, please see.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Don't design time table using grid view. Use time table separately, and separately the UI presentation for it. It's really important to isolate UI from other aspects of the application, and to isolate the data model from everything else. Other part of applications can be aware of data model, but the data model should be agnostic to application, so it would be one of the fundamental functional units, on the very bottom of the dependency diagram.
I suggest you learn and analyze applicability of the following architectural patterns ([^]):

MVVM — Model View View Model,[^],
MVC — Model-View-Controller,[^]),
MVA — Model-View-Adapter,–view–adapter[^],
MVP — Model-View-Presenter,[^].

Pay attention for the motivation of those architectures. If you understand it, you would be able to create better design ideas.
As to the isolation of the UI and data model, you should better understand loose coupling and separation of concerns:[^],[^].
Good luck,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 BillWoodruff 300
1 Mathew Soji 274
2 Afzaal Ahmad Zeeshan 268
3 DamithSL 225
4 Sergey Alexandrovich Kryukov 205
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865

Advertise | Privacy | Mobile
Web03 | 2.8.1411019.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100