hk_dsgridcolumn

Represents a column in a hk_dsgrid.

Inherits from hk_dsdatavisible.

set_displayname(name[,registerchange)

the text displayed in the column header. If not set the columnname will be displayed

displayname()

returns the text displayed in the column header

set_columntype(type[,registerchange])

Sets the gridcolumn type. The following values are possible:

  • columnedit

  • columnbool

  • columncombo

If 'type' is columnedit the celldata will be shown as a string. If 'type' is columnbool the celldata will be shown as a boolean field. If 'type' is columcombo the celldata will be handled in a combobox during edit.

columntype()

returns the gridcolumntype

set_columnwidth(newwidth [,registerchange])

sets the displaywidth of the gridcolumn

columnwidth()

returns the displaywidth

set_listdatasource( datasourcename[,is_table[,registerchange]])

If type() is columncombo the cell will be handled in a combobox. See hk_dscombobox for details.

listdatasource()

If type() is columncombo the cell will be handled in a combobox. See hk_dscombobox for details.

listdatasourcename()

If type() is columncombo the cell will be handled in a combobox. See hk_dscombobox for details.

listdatasource_is_table()

returns True if the listdatasource is a table (and thus read- and writeable)

set_viewcolumnname(viewcolumn[,registerchange])

If type() is columncombo the cell will be handled in a combobox. See hk_dscombobox for details.

viewcolumnname()

If type() is columncombo the cell will be handled in a combobox. See hk_dscombobox for details.

set_listcolumnname( listcolumn[,registerchange])

If type() is columncombo the cell will be handled in a combobox. See hk_dscombobox for details.

listcolumnname()

If type() is columncombo the cell will be handled in a combobox. See hk_dscombobox for details.

set_listpresentationdatasource(number [, registerchange])

If type() is columncombo the cell will be handled in a combobox. See hk_dscombobox for details.

listpresentationdatasource()

If type() is columncombo the cell will be handled in a combobox. See hk_dscombobox for details.