Web.DBWeb.TDSTableProducer.DoFormatCell
Delphi
procedure DoFormatCell(CellRow, CellColumn: Integer; var BgColor: THTMLBgColor; var Align: THTMLAlign; var VAlign: THTMLVAlign; var CustomAttrs, CellData: string); dynamic;
C++
DYNAMIC void __fastcall DoFormatCell(int CellRow, int CellColumn, Web::Httpprod::THTMLBgColor &BgColor, Web::Httpprod::THTMLAlign &Align, Web::Httpprod::THTMLVAlign &VAlign, System::UnicodeString &CustomAttrs, System::UnicodeString &CellData);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Web.DBWeb.pas Web.DBWeb.hpp |
Web.DBWeb | TDSTableProducer |
Description
Generates an OnFormatCell event.
Applications cannot call this protected method. It is called internally by the Content method to allow the OnFormatCell event handler to customize the contents or display attributes of any cell in the HTML table. CellRow and CellColumn indicate the cell about to be rendered as HTML, where CellRow for the table header is 0, and CellColumn for the first column is 0. BgColor, Align, VAlign, and CustomAttrs are the display attributes that can be changed. CellData is the text that goes in the cell.
Descendants of TDSTableProducer can override DoFormatCell to make additional changes to the cells as they are rendered or to block the OnFormatCell event.