1 (edited by carohwoz 2017-04-18 13:48:10)

Topic: Pls. Help ! How to set Filter for Tablegrid

How do i set a filter for a TableGrid with a TextBox or a ComboBox or a Button ?
This does not work,
I am sorry but I an new To my Visual  Database
//-----------------------------

procedure Form1_ComboBox1_OnCloseUp (Sender: string);
begin
   Form1.TableGrid1.dbFilter := 'Testa_Nr' = Form1.Button3.Caption;
    Form1.TableGrid2.dbUpdate;
end;

Re: Pls. Help ! How to set Filter for Tablegrid

Hello.


procedure Form1_ComboBox1_OnCloseUp (Sender: string);
begin
   Form1.TableGrid1.dbFilter := 'Testa_Nr = "' + Form1.Edit1.Text+'"';
   Form1.TableGrid1.dbUpdate;
end;
Dmitry.

Re: Pls. Help ! How to set Filter for Tablegrid

Great ! it's look so easy when you know it,
Thank you