The Delphi program has tables in which data is copied from other tables and then edited. How to do that after copying data into such a table, new records could not be inserted manually? Those. when the lowest entry is being edited and the down arrow is pressed on the keyboard, a new entry would not appear.
3 answers
Set your grid ReadOnly := True;
|
Create an identifier and catch it.
It is not clear what the DBMS is, FireBird has a convenient SQL command InsertOrUpdate
|
Poor thing, you are also banned in search engines? :) Sorry for the sarcasm, and catch the answer . And immediately the first link .
|