Ejemplo n.º 1
0
        protected void grdDrivers_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            try
            {
                string driverIdNo = grdDrivers.DataKeys[e.RowIndex].Value.ToString();
                if (m_Repository.DriversDeleteList(driverIdNo))
                {
                    this.SeachDrivers();

                    this.ShowMessage(Messages.RECORD_DELETED_SUCESSFULLY);
                }
                else
                {
                    this.ShowMessage(Messages.RECORD_NOT_DELETED_SUCESSFULLY);
                }
            }
            catch (Exception ex)
            {
                this.HandleException(ex);
            }
        }