You can use this
protected void btnSubmit_Click(object sender, EventArgs e)
{
foreach (GridViewRow gr in GridView1.Rows)
{
Label lbl = (Label)(gr.Cells[8].FindControl("Label4"));
RadioButton R1 = (RadioButton)(gr.Cells[7].FindControl("RD1"));
RadioButton R2 = (RadioButton)(gr.Cells[7].FindControl("RD2"));
RadioButton R3 = (RadioButton)(gr.Cells[7].FindControl("RD3"));
DropDownList ddL = (DropDownList)(gr.Cells[6].FindControl("DropDownList1"));
HiddenField dd1 = (HiddenField)gr.Cells[6].FindControl("lblddl");
if (R2.Checked == true)
{
if (dd1.Value != "")
{
{
}
}
}
if (R3.Checked == true)
{
if (dd1.Value != "")
{
{
}
}
}
}
Here lbl stores the ID where is used in the update query for condition.