Jump to content

DBGrid: How to autoselect then value in the edited cell when it gets focus?


Recommended Posts

Posted

Hello!

I need a DBGrid in which some cells in each row are available for editing

When user presses Tab to go to the next cell - this cell gets focus and cursor is positioned at the end of the cell value

So before filling cell with a new value, user have to erase old value by press Backspace  or to select old value manually and then clear it

Is there any way to autoselect value when user enters the cell?

Thanks for any help!

Posted
17 minutes ago, Sherzod said:

Hello,

Do you use components (as editor) for editing?

No.

If it's important - I use TClientDataSet and property EditFormat  = '###,###,###,###,##0.000' for edited fields

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...