search grid on selective columns only

Hi

I have a advstring grid populated with a number of columns
eg.
column 1
column 2
column 3

I use below code to find the data:

procedure TProductEditFrm.SearchDataChange(Sender: TObject);
begin
  SGSearch.NarrowDown(SearchData.Text);
end;

How can I include / exclude the columns it searches ?

e.g.  I only want to search on column 1 and column 2 but not column 3

Thank you

Kamran

The 2nd (default) parameter of the NarrowDown method sets the column for which the narrow down happens. Default value is -1, i.e. applying to all columns.