dcl_Grid_StartItemEdit

Started by dbalogh, November 22, 2007, 02:03:57 AM

Previous topic - Next topic

dbalogh

Hi all,

I've just tried to use this function, but it does not seem to work. As I understood, when I click in a cell in the grid, I can edit it in place.
The code I used is

(defun c:BOM_Builder_R12_Form2_Grid17_OnSelChanged (nRow nCol /)
  (dcl_Grid_StartItemEdit BOM_Builder_R12_Form2_Grid17 nRow nCol)
)

The cell gets marked.... and that's it....Any ideas?
Did I miss something?
Thanks in advance,
Daniel

(OpenDCL 4.1.1.5 Studio and Runtime on Acad2007 SP2)


DW

Daniel,
have you set the item style for the cells you want to edit?  You need to do this first before you can edit the cell.  Use dcl_Grid_SetItemStyle in the OnInitialize function or set up the cell styles in the editor.  Once you've added rows you will be able to click into them and start editing. You don't need to call StartItemEdit explicitly.

David

dbalogh

Hi David!
That was it! Thanks a lot  ;D
I set the Columns Style in the Studio. Cool.....  :)

BR,
Daniel