Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top