Single Selection RadioButton on GridView

Designer

      
           
                 
                      
                 
           
           
                 
                       
                 
           
      



Code Behind
protected void btnApply_Click(object sender, EventArgs e)
    {
        int RowIndex = Convert.ToInt32(Request.Form["rdoRowIndex"]);
        if (RowIndex > -1)
        {
            GridViewRow _gvRow = gvDetails.Rows[RowIndex];
            Label _objSchemeName = (Label)_gvRow.FindControl("lblSchemeName");
            Response.Write(_objSchemeName.Text);
        }
    }
To Validate RadioButton is checked or not, click here

0 comments:

Twitter Delicious Facebook Digg Stumbleupon Favorites More