문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top