Recent

Author Topic: Data entry in DBGrid  (Read 2372 times)

eshjim

  • New Member
  • *
  • Posts: 27
Data entry in DBGrid
« on: July 30, 2016, 12:10:01 am »
Bit of a head scratcher here where Lazarus behaves differently from Delphi.  Tabbing through a populated DBGrid works normally - when the end column of the last record is reached, a tab automatically inserts a new record which can be easily discarded if not required merely by moving off it.  The problem arises upon data entry.  When the cursor reaches the end column of the record being inserted, instead of inserting a new blank record like Delphi did, a tab moves to the next item in the tab order, e.g. button or edit box.

Is there any DBGrid property which would result in a new record being inserted automatically, or must it be done programmatically? Posting the inserted record via the navigator does have the desired effect of enabling tabbing to the first column of an automatically inserted new record, so which would be the correct event in which to program this?  I am using Lazarus 1.6, SVN Revision 51630.
« Last Edit: July 30, 2016, 12:31:53 am by eshjim »

 

TinyPortal © 2005-2018