protected void CarList_RowDeleting(object sender, GridViewDeleteEventArgs e) { int carID = Convert.ToInt32(CarList.DataKeys[e.RowIndex].Value.ToString()); CarBLL carBL = new CarBLL(connectionString); carBL.DeleteCar(carID); BindData(); }