public void collapseRow(int rowNumber) {int startRow = findStartOfRowOutlineGroup(rowNumber);RowRecord rowRecord = getRow(startRow);int nextRowIx = writeHidden(rowRecord, startRow);RowRecord row = getRow(nextRowIx);if (row == null) {row = createRow(nextRowIx);insertRow(row);}row.setColapsed(true);}

public void CollapseRow(int rowNumber){int startRow = FindStartOfRowOutlineGroup(rowNumber);RowRecord rowRecord = GetRow(startRow);int lastRow = WriteHidden(rowRecord, startRow, true);if (GetRow(lastRow + 1) != null){GetRow(lastRow + 1).Colapsed = (true);}else{RowRecord row = CreateRow(lastRow + 1);row.Colapsed = (true);InsertRow(row);}}
