You can specfiy that borders should be displayed for an area in the spreadsheet.
Prerequisite
A table view is created for the query or the ad-hoc analysis.
Procedure
Start the query or the ad-hoc analysis.
Click Output if the table is hidden.
Activate the Spreadsheet tab bar.
Select the area of the spreadsheet that you want to define a border for.
Click Border and select the borders you want to use.
You have defined the relevant borders.