Grid-InsertColumn

Function Name dcl-Grid-InsertColumn
Syntax   (dcl-Grid-InsertColumn <CONTROL> Column [as Long] Caption [as String] {Justification [as Integer]} {ColumnWidth [as Long]} {ColumnImageIndex [as Integer]})
Return Type Boolean (T if successful; otherwise NIL)
Applies To Grid

This method inserts a new column into the grid. Column is the column index where the new column should be inserted, Caption is the column header caption, Justification is the column header caption justification style (default is left justified), ColumnWidth is the width (in pixels) of the new column (default is fit to caption), and ColumnImageIndex is the image from the control's image list to display beside the column header caption (default is none). Note that due to limitations in the Windows grid control, the first column in the control is always left justified and the justification style is ignored for that column.

Justification Style
0 Left justified
1 Centered
2 Right justified