OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: dbalogh on November 22, 2007, 02:03:57 AM

Title: dcl_Grid_StartItemEdit
Post by: dbalogh on November 22, 2007, 02:03:57 AM
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)

Title: Re: dcl_Grid_StartItemEdit
Post by: DW on November 22, 2007, 05:13:50 AM
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
Title: Re: dcl_Grid_StartItemEdit
Post by: dbalogh on November 23, 2007, 12:32:42 AM
Hi David!
That was it! Thanks a lot  ;D
I set the Columns Style in the Studio. Cool.....  :)

BR,
Daniel