Click here to Skip to main content
16,015,583 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI All..
I want to develop a dynamic time table for a school.
But the subjects and periods are not fixed ...so there can be any number of rows and columns in this which will be decided by user at runtime.

when user enters number of row and columns according to tha ta table layput will be displayed and Each cell of my Table will Contain a Textbox in which user can write somthing..

and when he clicks on save button the entire table will saved as it is....

should i use Gridview to accomplish my need ????
pls if u have any other better idea to develop this pls suggest me complete this task in a proper and rich way.....

thanks in advance
Posted
Updated 22-Feb-11 18:51pm
v2

 
Share this answer
 
If you don't need features specific to grid like sorting/paging etc then I would suggest to go with Table. From performance prospective it would be much better though a little bit of extra coding may be.

Steps:
1. Get the number of rows and columns.
2. Create the table with those columns.
3. Add row one-by-one. Add textbox in the cells. View is ready.
4. When you save, you have to save the data in a table format and then you can save it as an XML to store in DB or individual items in table in DB.
 
Share this answer
 
Hope this[^] might help you.
 
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