HtmlDataGridConfig::AddColumn

Adds an HtmlDataGridColumn to the Columns collection.

Examples

Add a column object:

loCol = CREATEOBJECT("HtmlDataGridColumn","Entered","Date")
loCol.FieldType = "T"
loCol.ItemAttributeString = [style="font-weight: bold"]
loConfig.AddColumn(loCol)

Add a column by expression to evaluate and header text:

loConfig.AddColumn("CareOf","Company","C")
o.AddColumn(loColumn, lcHeaderText, lcType)

Parameters

loColumn
A column object OR The column expression to evaluate (creates a new column instance internally)

lcHeaderText
Optional - if loColumn is a string you can specify the header text matching the expression.

lcType The FoxPro type ("C","T","N","L","D" etc.)


See also:

Class HtmlDataGridConfig

© West Wind Technologies, 1996-2024 • Updated: 08/17/15
Comment or report problem with topic