Results 1 to 3 of 3

Thread: DBGrid -- show defaults

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    4

    Post

    Hello,
    I have a DBGrid getting data from an Access Table.
    I have three fields namely
    ID -Autonumber
    Date - present date

    How can I show the defaults ie the ID which is an automumber and put in the present date for the date field once the user starts entering data into the dbgrid ??

    Thanks in advance.
    Renu


  2. #2
    New Member
    Join Date
    Oct 1999
    Location
    New Delhi,New Delhi,India
    Posts
    1

    Post

    Hello There !

    Try to use OnAddNew Event. It gets fired as soon as you press a key. Here you can move data to any column of newly added row by using columns collection like
    DBGrid1.Columns(0)="10/13/1999"

    Sushil D

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    4

    Post

    Hi,
    Thanks for the reply. But it still does not solve my problem. Only after I type something and press enter does the "OnAddNew" is fired.

    Any other solutions??
    Thanks

Posting Permissions

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



Click Here to Expand Forum to Full Width