Results 1 to 4 of 4

Thread: How to activate the first column in cDbCJGrid

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How to activate the first column in cDbCJGrid

    VDF16.1

    When the user records the datas in a grid, I like that he comes back to the first column in the next line.
    In dbgrid, I had such a code
    Code:
          Procedure Down_Row
              Forward Send Down_row // move down 1 row
              if (champs.recnum = 0) Set Current_Item to (Base_Item(self)) // Make crnt item 0
          End_Procedure
    How can I do the same in a cDbCJGrid ?

    In the help it's said that the procedure "MoveDownRow" bring the focus to the first column enterable in that row but it seems that it's not correct.

    I have written this procedure (where oTests_code11 is the first cDbCJGridColumn) but it doesn't work.
    Code:
            Procedure MoveDownRow
                Forward Send MoveDownRow
                Send Activate to oTests_code11
            End_Procedure
    Thanks

    Jacques

  2. #2
    Join Date
    Feb 2009
    Location
    Somewhere in Vermont, USA - unless I'm not
    Posts
    9,354

    Default Re: How to activate the first column in cDbCJGrid

    Code:
     Send MoveToFirstEnterableColumn
    IOW:

    Code:
            Procedure MoveDownRow
                Forward Send MoveDownRow
                Send MoveToFirstEnterableColumn
            End_Procedure
    Garret

    Don't always believe what you think...



  3. #3
    Join Date
    Mar 2009
    Location
    Genoa - Italy
    Posts
    619

    Default Re: How to activate the first column in cDbCJGrid

    Renato Villa
    Genoa - Italy
    renato.villa@fastwebnet.it

    Software bugs are impossible to detect by anybody except the end user.

  4. #4
    Join Date
    Nov 2008
    Location
    Round Rock, TX
    Posts
    7,660

    Default Re: How to activate the first column in cDbCJGrid

    Quote Originally Posted by Jacques Delannay View Post
    In the help it's said that the procedure "MoveDownRow" bring the focus to the first column enterable in that row but it seems that it's not correct.
    Hi Jacques,

    can you point me to where it says this in the help so I can correct it? I can't seem to find that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •