Hi, would you mind showing us the code you got there - would be faster to salve the issue. Thx in advance.
Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
That loop is not ok. I dont even know how the varible "radiobtnval" is accessable outside of the loop, because you initialize it inside of the loop. And one more thing. Every time the code goes throught the loop oversides the array, so it will alway be filled with only the data on the last loop.
Lets repair this loop to:
1.This is when you want to loop trought all the rows:
List<string> list = new List<string();
for(i=o;i<ds1.Tables[0].Rows.Count;i++)
list.Add(ds.Tables[0].Rows[i]["columnName"].ToString();
RadioTextBox1.text=list[0];
RadioTextBox2.text=list[1];
RadioTextBox2.text=list[2];
Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
Or would you like to get only values from one row? From 1st row (you stated row[0])?
Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474