To set the current row you will have to set CurrencyManager.Position.
To get the index using LIKE I would do:
1. use underlying DataTable.Select to find the row
2. extract pk from the row
3. do a for loop through all DataRowView in DataView and compare the pk you
got in point 2.
4. When you find the matching row you'll have also its index
5. use index to set CurrencyManager.Position
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
Techstudent said:
Thanks for the reply. I am trying to implement the "search/Find" in
Datagrid.
I am binding the grid with dataview using Currency manager. which seems to
work fine. after sorting also both Grid and dataview seems to be in sync.
as you said once i get the primary key, how can i point the cursor in the
grid to the correct row?
Thanks