searching in a DataGrid

  • Thread starter Thread starter Bamse
  • Start date Start date
B

Bamse

hi!

i need to search in a datagrid after more than one column
any ideas, something already in .NET Framework?

the DataView can only search upon one column only, the primary key column

Thank you,

Daniel
 
Bamse said:
hi!

i need to search in a datagrid after more than one column
any ideas, something already in .NET Framework?

the DataView can only search upon one column only, the primary key column

It's not true, with dataview you can search in all columns, the .Find()
method need a primary key
RowFilter propriety of the DataView support "filter" like sql query:

DataView.RowFilter="(coulum1 like '%red%' and column2>45) or column3 is
null";
 
It's not true, with dataview you can search in all >columns, the .Find()
method need a primary key
RowFilter propriety of the DataView support "filter" like >sql query:
DataView.RowFilter="(coulum1 like '%red%' and column2>45) >or column3
is null";

after search, i want the pointer to show the first row (even if it may
be more) that matches with the search criteria.

.RowFilter is used or viewing only certain rows
 
Back
Top