Board index » delphi » data aware grid and table - record/key deleted
Tim Duffy
![]() Delphi Developer |
Thu, 15 Apr 2004 07:17:09 GMT
data aware grid and table - record/key deleted
Hi,
I have a TDBGrid, TDataSource and TTable on a form. I created a Paradox table with DataBase Desktop. The table has three fields. I set field[0], a numeric field, to be a key field that I want to set from calculated data. The key field is not displayed in the grid - I am just using it to keep the data sorted in the grid. The key field is used in a TChart however, but that is working fine. I am making the change in the BeforePost event handler. I have also tried Everything works fine when I insert a new record, but when I edit an If I remove the "key" attribute from field[0] the error does not occur. But I cannot see what I am doing wrong here. Can anybody help? Thanks, |