int index = dt.Rows.IndexOf(row);. But you're probably better off using a for loop instead of foreach.
確定! 回上一頁