i Use datalist And Also use 4 radiobutton list in datalist i bind datalist from database i run the application radio button list multiple selected but i need radio buttonlist one selected then suppose i selected second radio button radio button one automatic unselected
i send u image
i need only one radio button list selected
i seend u problem image

Rohan GuptaRank #2,588 · 539 reputationPosted Jun 28, 2015, 11:18 PM EDT
protected void RadioButton1_CheckedChanged(object sender, EventArgs e) { //Clear the existing selected row foreach (GridViewRow oldrow in GridView1.Rows) { ((RadioButton)oldrow.FindControl("RadioButton1")).Checked = false; } //Set the new selected row RadioButton rb = (RadioButton)sender; GridViewRow row = (GridViewRow)rb.NamingContainer; ((RadioButton)row.FindControl("RadioButton1")).Checked = true; }Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 28, 2015, 11:30 PM EDT