Occurs after the all rows of
dbgrid are saved into the Excel.
Description
You can use this event to apply additional formatting to the detail area.
Syntax
TDBGridAfterDetail =
procedure (Sender: TObject; Range:
IXLSRange) of object;
| Sender | TObject. Specifies the TDBGrid2Excel component that triggered the event. |
| Range | IXLSRange. Represents a range which contains the whole detail area. |
Example
This example puts the line between rows in the detail area.
procedure TForm1.DBGrid2Excel1AfterDetail(Sender: TObject;
Range: IXLSRange);
begin
Range.Borders[xlInsideHorizontal].LineStyle := xlContinuous;
end;