c# sample Coding
Pages
C# Sample
Excel Macro
SQL Query
Use full Free Download Links
Friday, 1 March 2013
How do I get current index in “for each” loop
Solutions 1:
foreach
(
DataRow
row in dtGroups.Rows)
{
string
grpTitle = row["MainCategory"].ToString();
int
id = dtGroups.Rows.IndexOf(row); // (row no)
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment