Beispiel #1
0
        protected void grdData_RowCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == "DeleteAction")
            {
                OperationResult objOperationResult = new OperationResult();
                // Obtener los IDs de la fila seleccionada
                int nodeId = Convert.ToInt32(grdData.DataKeys[grdData.SelectedRowIndex][0]);

                // Borrar Nodo
                _objNodeBL.DeleteNode(ref objOperationResult, nodeId, ((ClientSession)Session["objClientSession"]).GetAsList());

                // Borrar Organizaciones asociadas del nodo actual
                //OperationResult objOperationResult1 = new OperationResult();
                //_objNodeBL.DeleteNodeOrganizations(ref objOperationResult1, _nodeId, 1);

                BindGrid();
            }
        }