filter a TDBF with a TDBGrid lazarus / 16-Databases ---------------------------------------------------------------------- christophe_D · 2007-03-06 06:01 how is possible to filtering a TDBF , when the Data Base is view with a TDBGrid in the doc of TDBF the function filter is the solution i hope but it's not really clear have you some an example ?? thank for your help ---------------------------------------------------------------------- RudieD · 2007-03-06 11:54 You mean something like this Code: [Select] DBF1.Filter := 'Field1="SomeValue"'; DBF1.Filtered := True; ---------------------------------------------------------------------- christophe_D · 2007-03-07 16:17 Quote from: "RudieD"You mean something like this Code: [Select] DBF1.Filter := 'Field1="SomeValue"'; DBF1.Filtered := True; thank , but with this, there an "violation error" i'm found this Code: [Select]procedure TForm1.MybaseFilter(DataSet: TDataSet;   var Accept: Boolean); begin   Accept:=Mybase.FieldByName('Field1').AsInteger>=2; end; and it's work fine !!