protected void btnAddProvinces_Click(object sender, EventArgs e)
        {
            List <Object> keyvalues = new List <Object>();

            Entity.DonVi sysRegion = new Entity.DonVi();
            sysRegion = (Entity.DonVi)grdRegion.GetRow(grdRegion.FocusedRowIndex);
            keyvalues = grdProvince.GetSelectedFieldValues("ID");
            foreach (object keyvalue in keyvalues)
            {
                Entity.SYS_Region_Organization sysRegionProvince = new Entity.SYS_Region_Organization();
                sysRegionProvince.IDRegion       = sysRegion.ID;
                sysRegionProvince.IDOrganization = (int)keyvalue;
                _isRegionOrganizationService.InsertSYS_Region_Organization(sysRegionProvince);
            }
            grdRegionOrganization_CustomCallback(null, null);
            Response.Redirect("SYS_Region_Organization.aspx");
        }
 protected void grdRegionOrganization_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
 {
     Entity.SYS_Region_Organization sysRegionProvince = new Entity.SYS_Region_Organization();
     Entity.DonVi sysRegion = new Entity.DonVi();
     sysRegion = (Entity.DonVi)grdRegion.GetRow(grdRegion.FocusedRowIndex);
     try
     {
         sysRegionProvince.ID = (int)e.Keys["ID"];
         _isRegionOrganizationService.Delete_SYS_Region_OrganizationByIDRegion(sysRegion.ID, sysRegionProvince.ID);
         grdRegionOrganization_CustomCallback(null, null);
         e.Cancel = true;
         grdRegionOrganization.CancelEdit();
     }
     catch (Exception)
     {
         throw;
     }
 }