teddy bear

teddy bear

  • NA
  • 1
  • 0

radiobuttonslist in a datagrid

Jun 1 2006 10:03 AM
hi everybody,

i need some help on something :(( i have a column wich i put a radiobuttonlist.
the thing is, i can't select the selectItem.text of the radio. i don't know why!!! i followed the tutorial wich i found here. but it didn't work.
here is the code:

foreach(DataGridItem i in DataGrid1.Items)

{

String type="";

RadioButtonList rb = i.FindControl("RBType") as RadioButtonList;

type=rb.SelectedItem.Text;
}

he can found the control, but it always has a false value even if i change it....

can any one help me
thanks