S
sck10
Hello,
When iterating through a datatable, how do you get the row that you are on?
I would like to replace "i" with the row number.
Thanks,
sck10
int i = 0;
string strBarName = string.Empty;
foreach(DataRow drSearch in dtSearch.Rows)
{
drRow = dtSearch.Rows;
strBarName = drRow[0].ToString();
i++;
}
When iterating through a datatable, how do you get the row that you are on?
I would like to replace "i" with the row number.
Thanks,
sck10
int i = 0;
string strBarName = string.Empty;
foreach(DataRow drSearch in dtSearch.Rows)
{
drRow = dtSearch.Rows;
strBarName = drRow[0].ToString();
i++;
}