G
Guest
Here is the situation
I am trying to set up a generic search routine for all datasources in my application. I pass this routine the currency Manager from any application
From the currency manager I figure out the data source and allow the user to select a record by applying a filter or sort that allows them to scan through all the records or create a specialized subset to scan through. When the row has finally been selected I need to set the original source CurrencyManager position to the row that was found in the sub-search
The CurrencyManager List source is usually a DataView. I can only use the Find Method of a DataView if the original DataView was sorted and it my case it may not be sorted in all cases. If there is no sort on the dataview of the original dataSource how can I position it to the row I want without reading through the entire table
Now in my mind what is consistent between the two is the absolute row number in the datasource but I cannot figure out how to access this
Eg
CurrencyManager for CustomerHistory,Unsorted = 10000 rows..
CurrencyManager is passed to a generic routin
which allows the operator to sub-set the histor
say by region, product type, date..(sub-set of 20 rows
One of the 20 rows is selecte
How to set the original currencyManager to the selected ro
when the original DataView is unsorted??? IE say the ro
selected is absoloute row 2000, is there a way of settin
the original currency manager to an absoloute row number
I am trying to set up a generic search routine for all datasources in my application. I pass this routine the currency Manager from any application
From the currency manager I figure out the data source and allow the user to select a record by applying a filter or sort that allows them to scan through all the records or create a specialized subset to scan through. When the row has finally been selected I need to set the original source CurrencyManager position to the row that was found in the sub-search
The CurrencyManager List source is usually a DataView. I can only use the Find Method of a DataView if the original DataView was sorted and it my case it may not be sorted in all cases. If there is no sort on the dataview of the original dataSource how can I position it to the row I want without reading through the entire table
Now in my mind what is consistent between the two is the absolute row number in the datasource but I cannot figure out how to access this
Eg
CurrencyManager for CustomerHistory,Unsorted = 10000 rows..
CurrencyManager is passed to a generic routin
which allows the operator to sub-set the histor
say by region, product type, date..(sub-set of 20 rows
One of the 20 rows is selecte
How to set the original currencyManager to the selected ro
when the original DataView is unsorted??? IE say the ro
selected is absoloute row 2000, is there a way of settin
the original currency manager to an absoloute row number