DataGrid ColumnWidth

Martin Obongita martin.obongita at yahoo.com
Wed Sep 21 16:17:18 UTC 2022


Hi All,

I have the method below to define the width of columns in a datagrid:

Set reference lDataGridRef to $cinst.$objs.dataGrid
Do lDataGridRef.$currentcolumn.$assign(1)

Do lDataGridRef.$columnwidth.$assign(iCodeLengthMax)
Do lDataGridRef.$currentcolumn.$assign(2)
Do lDataGridRef.$columnwidth.$assign(iNameLength)
Do lDataGridRef.$currentcolumn.$assign(3)
Do lDataGridRef.$columnwidth.$assign(iChildNameLengthMax)

iCodeLengthMax has 0.5iNameLength has 1.2iChildNameLengthMax has 1.5

If I run the method, nothing happens in the display of the datagrid columns.
What am I missing?
Kind regards,Martin Obongita.


More information about the omnisdev-en mailing list