Simple: stop using row zero each time:
row["Cast"] = objResult.ResutlDs.Tables[2].Rows[0]["Column1"].ToString();
^
|
Instead, set up a integer variable outside your loop (or better use a
for
loop instead of a
foreach
) and use that instead of the constant value.