Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I have a series of number i need to validate the series such that it must can't consider number inbetween series.. for eg i have 10 to 20 numbers in of the coloum of gridview in the format of 10-20 if again if i add to grid as 15-20 or 5 to 25 or 11 to 15 it must not consider..

for example
Column
10-20
25-30
40-60
100-150

If I need to add one more record to the grid it should not consider 10-20 or 28-30 or 45-55
Posted
Updated 28-Jul-11 2:23am
v3
Comments
Manas Bhardwaj 28-Jul-11 5:59am    
not sure what you mean.!

1 solution

You can write a gridview extension method that checks the column in question for the first available value. There are a lot of ways to implement such a method.
 
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