void bind()
{
foreach (GridViewRow row in GridView1.Rows)
{
string name = ((Label)row.FindControl("label1")).Text.ToString();
string gender = ((DropDownList)row.FindControl("dropdown1")).SelectedValue.ToString();
string contact = ((Label)row.FindControl("lblcontact")).Text.ToString();
//code to write
}
}