Exemplo n.º 1
0
        protected void gvList_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            GridView gv  = (GridView)sender;
            Int32    _id = (int)gv.DataKeys[e.RowIndex].Value;

            BllProxyGroupFacility.SetGroupFacility(_id, facilityId, false);

            setFacilityGroups(facilityId);
            this.showTextMessage("Group has been removed");

            e.Cancel = true;
        }
        ///---------------------------------------------------------------------------------
        protected void gvList_RowEditing(object sender, GridViewEditEventArgs e)
        {
            GridView gv  = (GridView)sender;
            Int32    _id = (int)gv.DataKeys[e.NewEditIndex].Value;


            BllProxyGroupFacility.SetGroupFacility(groupId, _id, true);

            setGroupFacilities(groupId);
            this.showTextMessage("Facility has been added");

            e.Cancel = true;
        }