This question is locked. New answers and comments are not allowed.
Is it possible to cancel a row change with a grid view?
(If not, can I suggest this)
I have an OpenAccess + RIA, and a DomainDataSource to move data to my front end.
Basically, I've implemented a Ok/Cancel message box to undo changes to records, each time your current item changes
If you hit ok, it will DomainDataSource.UndoChanges()
Otherwise if you hit cancel it will stay on the current record: DataView_CurrentChanging(object sender, CurrentChangingEventArgs e) event.. e.Cancel = true;
Now I have buttons that call movetonext previous first last etc. And they work fine with my ok/cancel message box. However, if I click on my gridview, and change items that way, the DomainDataSource.Data(View).CurrentItem, is what it should be (i.e. if I hit cancel, it won't change)
HOWEVER, the GridViews currently highlighted row, is not the correct row.
Is there a way I can make the GridView's "selectedrow" stay linked to the DataContext's current item?
(If not, can I suggest this)
I have an OpenAccess + RIA, and a DomainDataSource to move data to my front end.
Basically, I've implemented a Ok/Cancel message box to undo changes to records, each time your current item changes
If you hit ok, it will DomainDataSource.UndoChanges()
Otherwise if you hit cancel it will stay on the current record: DataView_CurrentChanging(object sender, CurrentChangingEventArgs e) event.. e.Cancel = true;
Now I have buttons that call movetonext previous first last etc. And they work fine with my ok/cancel message box. However, if I click on my gridview, and change items that way, the DomainDataSource.Data(View).CurrentItem, is what it should be (i.e. if I hit cancel, it won't change)
HOWEVER, the GridViews currently highlighted row, is not the correct row.
Is there a way I can make the GridView's "selectedrow" stay linked to the DataContext's current item?