Subject | Problem with records disappear in dbgrid(detail db). |
---|---|
Author | speedyc65 |
Post date | 2003-11-05T12:06:39Z |
I have a problem when using a master-detail and the detail is a
dbgrid. When a new record is posted in the dbgrid the row disappears
and a refresh won't cure it. Doing a next and previous will get the
record back in the grid again. I have made some changes to KeyLinks
in the TIBOTable but im not sure im doing it right. If I understand
it right its only the PK thats suppose to be there. Nothing meantion
if the PK has several fields so I guessed and put this into the
KeyFields meaning all 3 fields are in the PK.
Tablename.Field1
Tablename.Field2
Tablename.Field3
Not even sure this is the problem but its seems to be the source of
problem in several posts i looked at in the list.
Using TIBODatabase/TIBOTable v.4, Firebird 1.5 and Delphi 5.
dbgrid. When a new record is posted in the dbgrid the row disappears
and a refresh won't cure it. Doing a next and previous will get the
record back in the grid again. I have made some changes to KeyLinks
in the TIBOTable but im not sure im doing it right. If I understand
it right its only the PK thats suppose to be there. Nothing meantion
if the PK has several fields so I guessed and put this into the
KeyFields meaning all 3 fields are in the PK.
Tablename.Field1
Tablename.Field2
Tablename.Field3
Not even sure this is the problem but its seems to be the source of
problem in several posts i looked at in the list.
Using TIBODatabase/TIBOTable v.4, Firebird 1.5 and Delphi 5.