TCRDBGrid Component --> filter/search CONTAINS?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
achung
Posts: 3
Joined: Thu 26 Feb 2015 13:12

TCRDBGrid Component --> filter/search CONTAINS?

Post by achung » Thu 26 Feb 2015 13:22

Hello -
In TCRDBGrid, is there a way to express CONTAINS as the relational statement?
In other words, in the column filter/search bars of the grid, is it possible to execute:
(1) Last Name CONTAINS "mit" to return "Smith"? The default behavior of the search bars appears to return "Smith" only if the user enters "Smi..." (i.e. Last Name STARTWITH...)

Thanks.
Andrew

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TCRDBGrid Component --> filter/search CONTAINS?

Post by AlexP » Thu 26 Feb 2015 14:03

Hello,

You can use the '%' symbol in the filter to specify any number of any symbols, similarly to the LIKE operator: %mit% -> Smith

Post Reply