CurrencyManager in webforms?

J

Jason

Is there an equivalent to CurrencyManager when I'm using a datagrid-dataview
in an asp.net webform?? I need to know exactly which record is selected
when my datagrid(view) is sorted, filtered etc.

Thanks,

Jay
 
J

Jason

I have. My problem exists when I sort a dataview (which is the source of
my datagrid) and then click on 'edit'. The record that is returned is
always the record that was currently in that position within the datagrid
before the sort. Never the record that is there after the sort.

eg.

If I have a datagrid sorted by ID like:

ID Name
1 George
2 Harry
3 Dianne
4 Alfonso

and sort it by Name so it becomes:

ID Name
4 Alfonso
3 Dianne
1 George
2 Harry

If I click on '4' in the sorted grid it always returns the record associated
with '1' (ie. George).

With a CurrencyManager in a windows form I believe I can work around this,
but there is no such thing as a CurrencyManager for web forms (That I'm
aware of).

Any thoughts? I am absolutely desparate and frustrated with this and am
grasping at any straw poked my way :)

Thanks,

Jason
 
S

scorpion53061

Jason,

It is not elegant but what I do is I have a globally declared dataset
and I loop through the rows of the dataview adding the row to the
generic dataset and then bind the grid to that.

Just a thought.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top