Hello,
I have data table with 1000 rows, I want to select 100 rows them in each loop.
for e.g.
1
2
...
100
-------
next loop
101
102
..
200
-----
etc
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Farhan ShariffRank #2,004 · 725 reputationPosted Jun 16, 2014, 12:35 AM EDT
Farhan ShariffRank #2,004 · 725 reputationPosted Jun 16, 2014, 12:48 AM EDT
{
int value = datatable.Rows[i]["column name"];
}
for( int i=100; i < 200 ; i++)
{
int value = datatable.Rows[i]["column name"];
}