RxFPC:RxDBGrid - work on new filter style rxfstManualEdi
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6087 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
e6fe123d75
commit
676caaafef
@ -70,6 +70,7 @@
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
<UnitName Value="RxDBGridMainUnit"/>
|
||||
<IsVisibleTab Value="True"/>
|
||||
<TopLine Value="138"/>
|
||||
<CursorPos X="43" Y="138"/>
|
||||
<UsageCount Value="127"/>
|
||||
@ -474,10 +475,9 @@
|
||||
</Unit56>
|
||||
<Unit57>
|
||||
<Filename Value="../../../rxdb/rxdbgrid.pas"/>
|
||||
<IsVisibleTab Value="True"/>
|
||||
<EditorIndex Value="1"/>
|
||||
<TopLine Value="5938"/>
|
||||
<CursorPos X="94" Y="5955"/>
|
||||
<TopLine Value="5929"/>
|
||||
<CursorPos X="42" Y="5953"/>
|
||||
<UsageCount Value="11"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit57>
|
||||
|
@ -5485,10 +5485,18 @@ end;
|
||||
procedure TRxDBGrid.FFilterSimpleEditOnChange(Sender: TObject);
|
||||
begin
|
||||
with TRxColumn(Columns[Columns.RealIndex(FFilterSimpleEdit.Col)]).Filter do
|
||||
begin
|
||||
if FFilterSimpleEdit.Text = '' then
|
||||
begin
|
||||
CurrentValues.Clear;
|
||||
State:=rxfsAll;
|
||||
end
|
||||
else
|
||||
begin
|
||||
CurrentValues.Text:=FFilterSimpleEdit.Text;
|
||||
State:=rxfsFilter;
|
||||
end;
|
||||
end;
|
||||
|
||||
DataSource.DataSet.DisableControls;
|
||||
DataSource.DataSet.Filtered:=false;
|
||||
|
Loading…
Reference in New Issue
Block a user