Question

I have a TDBGrid with TADTable (FireDAC component to replace BDE TTable). The Table has an ID (varchar(1)), Name (varchar(30)), Description(varchar2(400)). This is just to display, no calculations etc happening. When associating the table to display the ID field of the table and I scroll up or down, duplicate records will appear in the grid: so:

A;B;C;D will become A;A;B;A;A;B;C;D;D

This behavior stops if I remove the 400 char field from the table.

How do I make this work?

I am using C++Builder XE4, FireDac with Oracle 11g

I tried replacing TDBGrid with TDBAdvGrid from TMS (same issue), So TADTable?

Was it helpful?

Solution

Please read http://docs.embarcadero.com/products/rad_studio/firedac/Browsing_Table.html. Pay attention to "Avoiding "unique key violation" error in LDV".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top