for (int i = 0; i < +table1.Rows.Count; i++) {
There is an extra
+
in front of
table1
; not a big deal, though.
string col = table1.Rows[i]["Par Name"].ToString()
Two problems here:
- a
;
is missing at the end of the line
- should not the name of the parameter be ["Parameter Name"] instead of ["Par Name"] (according to the rest of your post)?
And, most important, as the line where you are pointing the error is synctatically correct :
which error? Would you mind sharing it with us?