ow to make the CurrenCell the first one aftc a cell in a datagrid witha defaulview.filterrow

Hi, I Have a datagrid with a dataview as datasource. I aplied a filter dataview.rowfilter to the dataview and I need to make the CurrenCell the first row that return the filtered dataview. How do I do that. The code: public class mydatagrid : datagrid { ... protected override bool ProcessCmdKey(..... { //*** Dataview myDataview = (DataView) this.Datasource; myDataView.Sort = "productid ASC"; myDataView.RowFilter = ("productid LIKE '1*'"); //How do i get the row number of the rows after //the filter, and make the CurrentCell of the //datagrid the first row after the filter return base.ProcessCmdKey(ref msg,keyData); } }

Loader.
Up arrow icon