Hi,
I use a DBNavigator, a DBGrid and a IBCTable. When I insert a new record than the record is inserted one row above the cursor in the DBGrid. Afer post the record stays at this position. My table and DBGrid is ordered by the first field called Date. I want to have the new record at the correct position. How to to do this? Why is the record not inserted at the right position?
New inserted record ignores sort order
Hello,
You should put an index into the IBCTable.IndexFieldNames property. Here is an example:
You should put an index into the IBCTable.IndexFieldNames property. Here is an example:
Code: Select all
IBCTable.IndexFieldNames := 'Date';