I bind the ddl as name column in gridview and age as textbox in the next column.
SqlCommand com = new SqlCommand("Select id,name from employee", con);
SqlDataAdapter da = new SqlDataAdapter(com);
DataSet ds = new DataSet();
GridView1.DataSource = ds;
SqlDataAdapter da1 = new SqlDataAdapter("select id,name from employee", con);
DataSet ds1 = new DataSet();
for (int i = 0; i < GridView1.Rows.Count; i++)
DropDownList ddl = (DropDownList)GridView1.Rows[i].FindControl("ddlname");
ddl.DataTextField = "Name";
ddl.DataValueField = "Id";
ddl .DataSource = ds;
the above coding i fallow but in selelected indexchange event i have to dispaly the age of particular name in gridview.
View Complete Post