Occurs after the specified by RowIndex record is saved into the Worksheet
Descrizione
È possibile usare questo evento per applicare la formattazione condizionale all'intera riga nell'area di dettaglio
Sintassi
TDBGridAfterRow =
procedura (Sender: TObject; Range:
IXLSRange; RowIndex: Integer) of object;
| Sender |
TObject. Specifica the TGridToXLS component that triggered the event |
| Range |
IXLSRange. Rappresenta a range which contains the exported row |
| RowIndex |
Integer. The index of the row which is exported |
Esempio
This example sets the interior color for odd rows to aqua
procedure TForm1.GridToXLS1AfterRow(Sender: TObject;
Range: IXLSRange; RowIndex: Integer);
begin
if Odd(RowIndex) then Range.Interior.Color := ColorToRGB(clAqua);
end;