Dokumentacija HotXLS
Vsebina
Domov
Pregled
TGridToXLS
IXLSWorkbook
Domov
Vsebina
Pregled
AfterRow dogodek
Occurs after the specified by RowIndex record is saved into the Worksheet
Opis
You can use this event to apply conditional formatting to the whole row in the detail area
Skladnja
TDBGridAfterRow = procedure (Sender: TObject; Range: IXLSRange; RowIndex: Integer) of object;
Sender
TObject. Določa the TGridToXLS component that triggered the event
Range
IXLSRange. Predstavlja a range which contains the exported row
RowIndex
Integer. The index of the row which is exported
Primer
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;
Copyright © 2010-2026 losLab Software