Click here to Skip to main content
15,914,109 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a gridview with 4 columns....time,Collage,Personal and reminder

in first column + is a image Button and 8am is a linkbutton 8am,9am,10am.....etc

are coming from gridview binding with daytime.xml...

time || Collage || Personal || Reminder

8am+

9am+

10am+

11am+

12am+

------

8pm+



Problem (1)

I want to show data from table named PlannerMaster in the Collage,Personal,Reminder Column..

is it possible to show data in First Column From Any xml file And another 3 Columns from any other table/Datasource.........

Problem (2)

I also want to change the backcolor of column ..according to the saved event

For Example if any event for Personal Category (in our gridview Column no. 3) from 8am to 11am..at that condition i want to show the row 8am to 11 am with backcolor Yellow...

same for Functionality For Collage and Reminder Column .....

this will help user to visualize in which time duration he is engegged/busy.....

I have started to solve these tasks by my own...but want to do this in easy and proper manner.... so if u have any better idea, or way to solve these problems then Your Welcome

we will work together............ (if the objective hsnt cleared yet pls clear from me..)

pls suggest..

thanks in advance..........
Posted
Comments
SetuSahu 16-Feb-11 7:37am    
i have solved my problem....

thanks for your efforts..

1 solution

Answer to Problem (1)
You need to create DataTable combine datasource data and xml, then bind to gridview. I think that's the easiest way to process.

For Datatable creation,inserting, and etc.., follow the link below
http://programming.top54u.com/post/ASP-Net-Bind-GridView-to-DataTable.aspx[^]
 
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