Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends,

I have a doubt to display the content of the tables in matrix format.

I have three different tables
(1)Day Order (In this i have the day order details)
DayOrder Id
Dayorder Name
(2)Hour (In this i have the Hour details)
Hour Id
Hour Name
(3)Time Table (In this i have the time table details)
Id
Dayorder id
hour id
staff id

My Doubt is how i display the contents like this

DayHour1Hour2Hour3
Dayorder1staff1staff2staff3
Dayorder2staff2staff3staff1



I want to display in this format. please help me. i m using asp .net 2.0 using with c#. if any one have the solution about this please tell to me.

Thanks Friends,
Posted
Updated 30-Jan-11 19:51pm
v4
Comments
shakil0304003 31-Jan-11 2:05am    
Not clear!!!
Sandeep Mewara 31-Jan-11 4:13am    
All you need is to make a query that would result in this manner. Did you try?
sathya.spidy 2-Feb-11 6:55am    
which query i want to use for this. is there any suggestion pleas tell to me.

thanks,

1 solution

It is simple if you try. First design a query to fetch all values. Then customize the Gridview using template and display the data.
 
Share this answer
 
Comments
sathya.spidy 1-Feb-11 2:40am    
hi sir,

I m a beginner to asp .net so if u have any example like this please refer to me Sir.
Thanks,
Wild-Programmer 3-Feb-11 1:50am    
try this link for example : http://www.asp.net/data-access/tutorials/using-templatefields-in-the-gridview-control-vb

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