Jump to content

DBGrid Problem


Recommended Posts

I have a form with 5 Edits and 1 DBGrid. The property of TabStop of first 3 Edits and the DBGrid is off, because I need that the user navigate only with Tab or Enter key through the last two Edits, and when the user clicks on the DBGrid it will be selected. Any way when the user exit from last edit the dbgrid become selected.



Link to comment
Share on other sites

  • Administrators

Something like this:


function doNextTab(sender, e)
  var c=null; 
  var a=e.getCharCode(); 
  if (a==9) {
       while (c && !c.events['keypress'])  {
  if (c) c.focus();



For each Editable Control add below to OnKeyPress client event:


function OnKeypress(sender, e)
  doNextTab(sender, e);

Link to comment
Share on other sites

Join the conversation

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

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