I am looping through every row in a datatable:
foreach (DataRow row in dt.Rows) {}
I would like to get the index of the current row within
ArrayList check = new ArrayList(); for (int i = 0; i < oDS.Tables[0].Rows.Count; i++) { int iValue = Convert.ToInt32(oDS.Tables[0].Rows[i][3].ToString()); check.Add(iValue); }