HotXLS Belgeleri

AfterCell olay

Geçerli satırın ColumnIndex ile belirtilen sütunu hücreye kaydedildikten sonra tetiklenir

Açıklama

Ayrıntı alanına aktarılan herhangi bir hücreye koşullu biçimlendirme uygulamak için bu olayı kullanabilirsiniz

Sözdizimi

TDBGridAfterCell = procedure (Sender: TObject; Cell: IXLSRange; RowIndex, ColumnIndex: Integer; Column: TColumn) of object;
Sender TObject. Belirtir the TGridToXLS component that triggered the event
Cell IXLSRange. Temsil eder the cell which is exported
RowIndex Integer. The index of the current row
ColumnIndex Integer. The index of the column
Column TColumn. An object that represents the column

Örnek

This example sets the interior color for odd columns to silver

procedure TForm1.GridToXLS1AfterCell(Sender: TObject;
  Cell: IXLSRange; RowIndex, ColumnIndex: Integer; Column: TColumn);
begin
  if Odd(ColumnIndex + 1) then Cell.Interior.Color := ColorToRGB(clSilver);
end;