コード例 #1
0
        protected void grd_RowCommand(object sender, FineUI.GridCommandEventArgs e)
        {
            if (e.CommandName == "DeleteAction")
            {
                OperationResult objOperationResult = new OperationResult();
                // Obtener los IDs de la fila seleccionada
                string roleNodeComponentId = grd.DataKeys[grd.SelectedRowIndex][0].ToString();

                // Borrar
                _nodeBL.DeleteRoleNodeComponentProfile(ref objOperationResult,
                                                       roleNodeComponentId,
                                                       ((ClientSession)Session["objClientSession"]).GetAsList());

                //if (objOperationResult.Success != 1)
                //{
                //    Alert.ShowInTop("Error en operación:" + System.Environment.NewLine + objOperationResult.ExceptionMessage);
                //}

                BindGrid();
            }
        }