hi guys, I just started using opendcl
I created a grid and I can't get my cells to be editable
This is the code i wrote so far for the grid.
I tried alot of things to make my cells editable
what event/syntax should i use?
thx
(command "OPENDCL")
(defun c:armare (/)
(dcl_Project_Load "ARMARE.odcl")
(dcl_Form_Show ARMARE_Form1)
(princ)
)
(defun c:ARMARE_Form1_OnInitialize (/ GridCellTypeList nrow)
;;Lista tipuri de armaturi
(dcl_ComboBox_Clear ARMARE_Form1_ComboBox1)
(dcl_ComboBox_AddString ARMARE_Form1_ComboBox1 "Armatura longitudinala" " Etrieri plan" "Etrieri sectiune" )
;;Proprieteti
(setq iRowIndex1 (dcl_Grid_AddRow ARMARE_Form1_Grid1 (list "Marca")))
(dcl_Grid_SetCellStyle ARMARE_Form1_Grid1 1 1 6)
(setq iRowIndex2 (dcl_Grid_AddRow ARMARE_Form1_Grid1 (list "Diametru")))
(dcl_Grid_SetCellStyle ARMARE_Form1_Grid1 2 1 8)
(setq iRowIndex3 (dcl_Grid_AddRow ARMARE_Form1_Grid1 (list "Clasa")))
(dcl_Grid_SetCellStyle ARMARE_Form1_Grid1 3 1 6)
(princ)
)
The grid cell columns and rows are referenced by a zero-based index. It looks like you may be using a 1-based index. Does that help?