I tried adding the radio button to the data source as I have no idea how to add the radio button to a dynamic Obout grid and I'm receiving a Collection was modified; enumeration operation might not execute
exception. is there a way to add it to the DataTable a different way? or should I try adding the radio button to a list and then adding the list instead of the radio button directly?
public Grid gridTickets = new Grid(); //Obout grid initializing code
Column id = new Column();//Creating the Obout grid columns
id.DataField = "id";
id.HeaderText = "Ticket Nr";
id.Width = globals.SecurityKey == 5 ? "10%" : "8%";
Column severity = new Column();
severity.DataField = "severity";
severity.HeaderText = "Severity";
severity.Width = "10%";
gridTickets.Columns.Add(id);//Adding the columns to the Obout grid
gridTickets.Columns.Add(severity);
placeHere.Controls.Add(gridTickets);//Add the OboutGrid to the Place holder on the aspx side
dt = helpers.DisplayTickets();
RadioButton rb = new RadioButton();
int i = 1;
foreach (DataRow r in dt.Rows)
{
string temp = r[1].ToString();
if (r[].ToString().Contains("Level"))
{
rb.ID = "rb" + i;
dt.Rows.Add(r[1].ToString() + rb);
}
i++;
}
gridTickets.DataSource = dt;//Adding the DataTable to the Obout grid DataSource
gridTickets.DataBind();