Jump to content

DBGrid move to next column or row


LogSistemas01

Recommended Posts

 

 

Hello guys,

I have this dbgrid where the MARGIN and PRECO columns are editable, when pressing ENTER in the edit above, the focus goes to the dbgrid in edit mode, when pressing ENTER in the MARGIN column, I would like you to move to the PRECO column already in edit mode and when pressing ENTER on PRECO, move to the next line in the MARGIN column in edit mode, does anyone know how to do it?

 

ibb.co/gWMgRn5

Link to comment
Share on other sites

Sorry, I tried all I could to get this to work. Maybe someone can help with JavaScript.

I saw something like this in another thread.  It looks like it would set focus to another field, but that is not what you are looking for. I'm wondering if something similar could be done by emulating a tab key press.

if EventName='CarriageReturn' then
     UniEdit2.JSInterface.JSCall('focus',[]);

Here is a link that talks about the same feature but with java script. Maybe someone can get this working for you.

https://stackoverflow.com/questions/1009808/enter-key-press-behaves-like-a-tab-in-javascript

 

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...