public void expandRow(int rowNumber) {if (rowNumber == -1)return;if (!isRowGroupCollapsed(rowNumber)) {return;}int startIdx = findStartOfRowOutlineGroup(rowNumber);RowRecord row = getRow(startIdx);int endIdx = findEndOfRowOutlineGroup(rowNumber);if (!isRowGroupHiddenByParent(rowNumber)) {for (int i = startIdx; i <= endIdx; i++) {RowRecord otherRow = getRow(i);if (row.getOutlineLevel() == otherRow.getOutlineLevel() || !isRowGroupCollapsed(i)) {otherRow.setZeroHeight(false);}}}getRow(endIdx + 1).setColapsed(false);}

public void ExpandRow(int rowNumber){int idx = rowNumber;if (idx == -1)return;if (!IsRowGroupCollapsed(idx))return;int startIdx = FindStartOfRowOutlineGroup(idx);RowRecord row = GetRow(startIdx);int endIdx = FindEndOfRowOutlineGroup(idx);if (!IsRowGroupHiddenByParent(idx)){for (int i = startIdx; i <= endIdx; i++){if (row.OutlineLevel == GetRow(i).OutlineLevel)GetRow(i).ZeroHeight = (false);else if (!IsRowGroupCollapsed(i))GetRow(i).ZeroHeight = (false);}}GetRow(endIdx + 1).Colapsed = (false);}
