Datagrid edit cells

Started by cadplayer, April 26, 2016, 11:30:19 AM

Previous topic - Next topic

cadplayer

I am not sure I understand right Datagrid-object in odcl.
I only want to can type or edit datagrid-cells-captions, what I have to do or which events are important to know ?!

(defun c:fm_ProjectManager/dialoag_PM#OnInitialize (/)
    (dcl-Grid-Clear fm_ProjectManager/dialoag_PM/db_Data)
    (dcl-Control-SetRowHeader fm_ProjectManager/dialoag_PM/db_Data t)
    (dcl-Control-SetColumnCaptionList fm_ProjectManager/dialoag_PM/db_Data (list "Type" "Description"))
  )
These rows only initialize datagrid, but I cannot edit or write in cells !

owenwengerd

Two important things to consider:
1. The first column behaves differently than the others. Sometimes you have to make it zero width and skip it.
2. You have to set a cell style for every cell in order to edit them. The cell style is everything.

I hope this helps.

Fred Tomke

Hi, I set RowHeader to false, if I don't need it. Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

cadplayer

#3
thanks for reply works perfect!