03-02-2007 01:42 AM
03-02-2007 01:51 AM
This can be accomplished with a loop that iterates from 1 to the number of columns in the table and uses SetTableColumnAttribute (panelHandle, tableID, colIdx, ATTR_LABEL_TEXT, "Lable"); to set the label text. The label will be displayed only for each column on which you have choosed at design time to display a lable text instead of the default index value. This option can be set even at runtime passing the appropriate attribute to SetTableColumnAttribute (ATTR_USE_LABEL_TEXT).
GetNumTableColumns function retrieves the number of existing columns in a table.