Exemplo n.º 1
0
        /// <summary>
        /// Move the group down
        /// </summary>
        /// <param name="e"></param>
        private void MoveDown(DocActionEvent e)
        {
            IXMLDOMNode currentRow = e.Source;
            IXMLDOMNode rows       = currentRow.parentNode;
            IXMLDOMNode nextRow    = currentRow.selectSingleNode("following-sibling::" + currentRow.nodeName);

            rows.insertBefore(nextRow, currentRow);
        }
Exemplo n.º 2
0
        /// Move the group up
        /// </summary>
        /// <param name="e"></param>
        private void MoveUp(DocActionEvent e)
        {
            IXMLDOMNode currentRow  = e.Source;
            IXMLDOMNode rows        = currentRow.parentNode;
            IXMLDOMNode previousRow = currentRow.selectSingleNode("preceding-sibling::" + currentRow.nodeName + "[1]");

            rows.insertBefore(currentRow, previousRow);
        }