Hi,
I have crdbgrid with "string" type columns and FilterBar.
It is filtering exactly what is entered ( column "equals" value).
For example if "John" is entered, then "John" is found, but "John Silver" or "Frank John" are not found.
This is of course correct from some point of view.
Does exist some chance customize it?
Something as:
TCRDBGrid.AfterFilterRequest(col: TCRColumn; var filter: string);
??
Thank you.
Leonell
CRDBGrid, FilterBar and customization
Hello Alex,
thanks, it is working fine.
Plash from Devart team in 2007 wrotes:
>The TCRDBGrid component doesn't support any expressions in the filter bar. It supports only single values.
Will be nice to change this.
Any my tip is:
add dqeAdvFilterLogic (true/false) property to TCRDBGrid.
When is set then after entering value call AfterAdvancedFiltering() with column and entered value as string. And programmer is responsible to set FilterSQL (or call some CRDB method) correctly.
And where it will help after parsing?
14.2.2012:15.2.2012 ... value between "14.2.2012" and "15.2.2012"
New York|Chicago|Texas ... value in ("New York","Chicago","Texas")
= ... is not null
!New York .. value "New York"
etc
Leonell
thanks, it is working fine.
Plash from Devart team in 2007 wrotes:
>The TCRDBGrid component doesn't support any expressions in the filter bar. It supports only single values.
Will be nice to change this.
Any my tip is:
add dqeAdvFilterLogic (true/false) property to TCRDBGrid.
When is set then after entering value call AfterAdvancedFiltering() with column and entered value as string. And programmer is responsible to set FilterSQL (or call some CRDB method) correctly.
And where it will help after parsing?
14.2.2012:15.2.2012 ... value between "14.2.2012" and "15.2.2012"
New York|Chicago|Texas ... value in ("New York","Chicago","Texas")
= ... is not null
!New York .. value "New York"
etc
Leonell