/// <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); }
/// 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); }