Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends....
i Have to Bind My Gridview to display the timetable in day,Hours Basis for that i have to display my day Names in a column, and HourNames column as vertical column to my gridview. In this i have hourNames as(1stHour,2ndHour,.....)
Now I want to bind the ClassNames In that gridview Based on DayName and Hour Name...
I dont know how to display dynamically.
Anyone pls help me...
Posted

1 solution

This could be done with SQL JOIN statement. If you need to do in on the client you could use LINQ join operator:

C#
// Join on the time properties.
	var query = from c in timeFrameCollection
		    join o in valueaCollection on c.Time equals o.Time
		    select new { c.Time, o.Value};


For more information and samples please follow this link[^].
The collections could be anything implementing IEnumerable. It could also be a DB DataSets.
 
Share this answer
 
v2

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