E
E
evg_962018-01-29 17:56:58
Delphi
evg_96, 2018-01-29 17:56:58

How to filter, sort and search in a database (c++ builder)?

It is necessary to search and filter in the database in combobox (by column name).
How to make the combobox elements contain the names of the columns (how to do it dynamically, and not write it manually). How to make a search field for example by last name. And how to sort by clicking on the column name?
I tried to search on the net, but everywhere there are some ambiguous answers on the forums, which are difficult to understand and not the fact that there is exactly what is needed and whether it works at all ...
Please tell me how to organize the above. At least one thing.
IDE: Embercadero RAD Studio 10.2
lang: c++
5a6f36452a137723112152.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2018-01-29
@tsklab

How to make combobox items contain column names
Add fields (right mouse button) to the DataSet, in your case ADOQuery1.
And how to sort by clicking on the column name?
Use DBGrid which can do this (additional library like EHLib). Or process the specified pressing yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question