protected void Button1_Click(object sender, EventArgs e) { if (this.GridView3.SelectedIndex >= 0) { DAL dal = new DAL(); dal.SetComplaintStatus(GridView3.SelectedRow.Cells[1].Text, int.Parse(DropDownList1.SelectedValue)); DataBind(); } }