datatable vs dataview

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a DataTable and Dataview
When I modify a DataTable, the changes are getting reflected in my DataView
But when I modify Dataview, it's not getting reflected in my DataTable
why so
 
Hi reiks,

reiks said:
I have a DataTable and Dataview.
When I modify a DataTable, the changes are getting reflected in my DataView.
But when I modify Dataview, it's not getting reflected in my DataTable.
why so?

You sure?
How do you test it?
 
What evidence shows you that changes made to the DataView are not updating your DataTable

Is it when you change just one row through the DataView? If so make sure you are using EndEdit when the row edit is completed

Mike McIntyr
Source Code for .NET Developer
http://www.getdotnetcode.com
 
Hi Mike,

Mike McIntyre said:
What evidence shows you that changes made to the DataView are not updating your DataTable?

Is it when you change just one row through the DataView? If so make sure
you are using EndEdit when the row edit is completed.

Just a note: I believe that EndEdit is necessary only if BeginEdit is
callled.
 
Please comment out any Format and Parse events and retest. I have seen
similar behavior when there was an error in the calling chain of the data
save. The most common way to see that ( and how you can simulate the
problem) is to have errors in Format or Parse. It also may occur with other
parsing errors, such as a date with an invalid date.So check for this
behavior with very simple text fields.
 
Hi

I have exactly the same problem, can you say to me how you it solved?

Carlos D.
 
Back
Top