delphi - How to remove duplicate records in grid? -


Good morning!

What is the best way to remove duplicate records from grid control? I use the Delphi 200 9 and the Dvx Quantum Grid component.

I tried looping through all the records and when a duplicate record was found, add it to the list and apply the filter to the grid. There is also two downsides of this approach that I got as a logic of taking this time.

[1] When duplicate records are high enough, it takes a lot of time to apply filter after 10K record, because many entries to filter.

[2] Looping through all records only takes time to set big results like 1M rows.

SQL queries give me different rows, but when the user hides any of the columns in the grid, it looks as if there are duplicate records (they are internally intact).

Is there any other way to do this?

Any ideas on this are very useful!

Thanks & amp; Regards, Pawan.

With thousands of rows I will add an additional area to DB, which is said to be yoga or hash Or if you can not change a count field to DB, if this client is a data set but it overheads the display time

Calculate the contents of the hash field with any type of fast and simple things. All enemies in the text field are now easily recognizable . Add or filter this field in your unique or specific query parameters.

Just an Idea


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -