Function TWPCustomRtfEdit.AddDynamicGrid(tablename:string; adapter:TWPDataSetAbstractAdapter; parent_grid:TParagraph; rowheigth:Integer; Options:TWPTableAddOptions; fieldlist:TStrings; RowGroupLevel:Integer; StyleForCells:TWPTextStyle; StyleForHeader:TWPTextStyle; StyleForFooter:TWPTextStyle; DoPrepareTemplateRow:TWPPrepareTemplateRow; TableAddCellCallBack:TWPTableAddCellEvent) : TParagraph
Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit
Parameters
-
tablename:string adapter:TWPDataSetAbstractAdapter parent_grid:TParagraph rowheigth:Integer Options:TWPTableAddOptions fieldlist:TStrings RowGroupLevel:Integer StyleForCells:TWPTextStyle StyleForHeader:TWPTextStyle StyleForFooter:TWPTextStyle DoPrepareTemplateRow:TWPPrepareTemplateRow TableAddCellCallBack:TWPTableAddCellEvent
Returns
The type of the result value is TParagraph.
Description
AddDynamicGrid internally uses TableAdd() to create a dynamic grid with the fields defined by the provided adapter and/or the field list.THe default rowheight must be provided in twips.
StyleForCells is used for all cells, unless StyleForHeader and StyleForFooter were specified which are used for header and footer cells.