A simple way to add data to DBGIRD is very convenient.
WITH DM.SYSBKSETADOQ Do Begin Append; FieldbyName ('Book Category') .sstring: = Edit1.Text; Post; End; ShowMessage ('Add success');
My 'modification / complete' practice
If button2.caption = 'Modify' Ten BUTTON2.CAPTION: = 'Complete'; dbgrid1.readonly: = false; ELSE begin button2.caption: = 'modification'; dbgrid1.readOnly: = true;
Delete DBGRID data, what to choose, but if you are the same, you will report an error.
DM.sysbksetadoq.delete;