Click here to Skip to main content
16,020,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a gridview containing columns like UserID,TaskID,ReminderDate,Task,TaskType,TaskStatus,EmailID

Here TaskType is Daily,Weekly,Monthly,Yearly,Today,None.

Now i need to insert a new row in the table as per a condition (when the date in the Reminder Date matches with today's Date).

this i am able to do but the problem is how if more than one row satisfy this condition.
Posted

I didnt understand why you need to insert a new row? what does the new row do? cant you just color the tasks that satisfy the condition? If you want to color or do anything per each row ( test the condition on each row) use OnRowDatabound event...

another good solution would be to have another table that gets all the items that satisfy the condition(reminders) and loaded for the user to see.

Regards,
Ibrahim karakira
 
Share this answer
 
Comments
Harsha24 22-Jul-13 7:30am    
this is like Task Reminder..
So i need to insert a new row when ReminderDate is reached Today's Date. I am getting this. but it is dng for only one record. i want it to check all d rows in the gridview..

Also important thing is that it should run only once in a day.. so i am writing this as static method in global.asax page. using thread
 
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