is there a way to loop through each row of a table. I have built a table with several rows and cells, now I need to go through the table one column and row at a time but I need to be able to loop through the table and identify what value is in the first column of a row then I can fill the colunm of that row with the data I need. An example of what I am looking for is
for each row in table
if row.cell(0).text = "A" then
row.cell(3).text = "B"
end if
next
is there a way to do this
loop through table
Re: loop through table
Support · Dec 24, 2008Hello,
Here is the C# code to do what you are needing:
foreach (Row row in table.Rows)
{
if (row.Cells[0].Text == "A")
{
row.Cells[3].Text = "B";
}
}
Let us know if you need further assistance.
Thanks,
ceTe Software Support Team