Raja

Raja

  • NA
  • 2k
  • 356.8k

How to validate number in asending order in datatable column

Dec 26 2016 6:42 AM
in data table particular column is have only ascending order numbers.this is strictly start from 1,2,3,4,5
 
i validate unique of the column but now i want to validate only start from 1 and ascending order if
data table row have 10 rows the number is 1,2,3,4,5,6,7,8,9,10. how to do it.
 
if (ds.Tables[s].Rows[2][2].ToString().Trim() == "")
{

}

This is my code for validate empty rows .please find the attachment 

Answers (2)