Posted on: 9/25/2013 5:45:12 AM | Views : 687

Hi,
I  have one table, In that table i have 300 records.( records are should always in the table 300)
I am binding to DataTable to that records.
DataTable dt = new DataTable()
dt =SomeMethod() //I am getting 300 Records in the dt.
Here i need to write case condition ( user will pass two parameters like 1, 60 or 2, 60 or 3, 60 or 4, 60 or 5,60)
If user will pass the 1, 60 parameter then from the above DataTable dt I need to Loop through the first 60 records from the DataTable
If user will pass the 2, 60 parameter then from the above DataTable dt I need to Loop through the second 60 records (i.e From 60 to 120 records) from the DataTable
If user will pass the 3, 60 parameter then from the above DataTable dt I need to Loop through the second 60 records (i.e From 120 to 180 records) from the DataTable
Like 4, 60 0r 5,50
Help Me,
How to write the Condition.
Thanks,


...

Go to the complete details ...