protected void GridView4_SelectedIndexChanged(object sender, EventArgs e) { if (this.GridView4.SelectedIndex >= 0) { DAL dal = new DAL(); this.DropDownList3.DataSource = dal.GetOtherEmployees(GridView4.SelectedRow.Cells[3].Text); this.DropDownList3.DataTextField = "employeename"; this.DropDownList3.DataValueField = "employeeid"; this.DropDownList3.DataBind(); } }