G
George Paiva
Hello,
I have a datagrid that I dynamically add radio buttons to in the
onItemDataBoud Event. I set each radio button to the same GroupName but
when I run the page the radio button group does not dissallow multiple
selections as it should. My C# code snippet is below.
Any thoughts???
public void ItemDataBoundHandler(Object sender, DataGridItemEventArgs e)
{
RadioButton rb = new RadioButton();
rb.AutoPostBack=true;
rb.GroupName="selItem";
rb.ID=e.Item.Cells[0].Text;
e.Item.Cells[2].Controls.Add(rb);
}
Thanks
Geo
I have a datagrid that I dynamically add radio buttons to in the
onItemDataBoud Event. I set each radio button to the same GroupName but
when I run the page the radio button group does not dissallow multiple
selections as it should. My C# code snippet is below.
Any thoughts???
public void ItemDataBoundHandler(Object sender, DataGridItemEventArgs e)
{
RadioButton rb = new RadioButton();
rb.AutoPostBack=true;
rb.GroupName="selItem";
rb.ID=e.Item.Cells[0].Text;
e.Item.Cells[2].Controls.Add(rb);
}
Thanks
Geo