protected void rbtnStatus_CheckedChanged(object sender, EventArgs e) { try { RadioButton rbtn = sender as RadioButton; GridViewRow row = (GridViewRow)rbtn.NamingContainer; RadioButton rbtnyes = (RadioButton)row.FindControl("rbtnApproved"); RadioButton rbtnHold = (RadioButton)row.FindControl("rbtnHold"); Label lblstatus = (Label)row.FindControl("lblStatus"); rbtnyes.Visible = false; rbtnHold.Visible = false; lblstatus.Visible = true; lblstatus.Text = rbtn.Text; objBal = new ClsBAL(); string msg = objBal.Updatedmr(Convert.ToInt32(rbtn.ValidationGroup.ToString()), rbtn.Text); lblMsg.InnerText = msg; } catch (Exception ex) { lblMsg.InnerHtml = ex.Message; } }