Hi Rohit,
As per your comment, you said you are using TemplateFields then how you are calling control using cells, which is not correct.
The Problem in above code is calling control.
Use below sample,
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if(e.CommandName=="Select")
{
GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
txt_Name.Text = (row.FindControl("Name") as Label).Text;
txt_Email.Text = (row.FindControl("Email") as Label).Text;
txt_Phone.Text = (row.FindControl("Phone") as Label).Text;
ddl_Gender.Text = (row.FindControl("Gender") as Label).Text;
txt_DOB.Text = (row.FindControl("DOB") as Label).Text;
}
}
and design your gridview column as suggested by Vikas, before implement the task you should read some articles which related to your requirement after that start work on that.
There are no of mistakes in your design as well as your code, use proper naming conventions whenever you are using label give labelname as "lbl" with prefix, I gave solution as per your design, but this is not a good way to give control names.
Hope you understood..