0

In Delphi 2007, I have a DBgrid who show data from a TDataSource.

But at the end of this DBGrid I want to add an empty row to permit user insert new values.

I tried to put the fonction Abort in the BeforeInsert procedure of my TUniTable. But I never had an empty row at the end.

Someone can help me ?

TLama
  • 75,147
  • 17
  • 214
  • 392
  • 1
    Show some code of what you have tried so far. Welcome to SO. – devconcept Jun 22 '15 at 12:36
  • 1
    `Insert` or `Append` will add a new empty row (`Append` at the "end"). `Post` saves it if the user enters information. `Cancel` discards changes, as does `Abort`. What part of that is unclear? – Ken White Jun 22 '15 at 13:03
  • 1
    Why would you not use the default behavior of DBGrid? Why do you need a different set of controls to add a record? Do you need to do validation? There are events on fields that you can use if that is the case. – Sotirca Mihaita George Jun 24 '15 at 09:44

0 Answers0