OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: cadplayer on April 26, 2016, 11:30:19 AM

Title: Datagrid edit cells
Post by: cadplayer on April 26, 2016, 11:30:19 AM
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 !
Title: Re: Datagrid edit cells
Post by: owenwengerd on April 26, 2016, 11:47:13 AM
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.
Title: Re: Datagrid edit cells
Post by: Fred Tomke on April 26, 2016, 08:35:44 PM
Hi, I set RowHeader to false, if I don't need it. Regards, Fred
Title: Re: Datagrid edit cells
Post by: cadplayer on April 27, 2016, 11:56:44 PM
thanks for reply works perfect!