Click here to Skip to main content
16,012,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a grid view which is editable.There are 10 rows with column "start date" and "end date".
4/1/2011 17/1/2011 (valid-existing row)
1/2/2011 3/3/2011 (valid-existing row)
3/1/2011 21/1/2011 (Invalid - edited row )
I should check whether there is any row having start-end dates lying within the existing date range and if there any i need to show error message.
Can any one help me to give the logic please
Posted

1 solution

Take a look at this:

http://msdn.microsoft.com/es-es/library/system.web.ui.webcontrols.gridview.rowediting%28v=vs.80%29.aspx[^]

Change the line
if (country == "USA")

for your date validation.

If you need more help. Please post your code.

Regards...
 
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