# Summary Row

Modify and customize the summary row based on your requirements using DsExcel.

## Content

Summary rows are group header rows displaying the group names with complete information about an existing group. Corresponding to each group, a summary row is automatically created when a user executes the grouping operation in a spreadsheet.
With DsExcel Java, you can modify and customize the summary row based on your requirements by using the [setSummaryRow](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IOutline.html#setSummaryRow) method of the [IOutline](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IOutline.html) interface.
In order to set summary row, refer to the following example code.

```Java
// Summary
worksheet.getOutline().setSummaryRow(SummaryRow.Above);

// Summary row will be row 4.
worksheet.getRange("5:20").group();
// Summary row will be row 14.
worksheet.getRange("15:20").group();
```

![](https://cdn.mescius.io/document-site-files/images/dd59ea42-cd61-4fa6-a018-6231c2a9c598/images/summary-row.png)