RowChanged event WRT Related Tables in a DataSet

G

Guest

Hello,
I and using a dataset with multiple tables, all related, and I'm using
browser like navigation (via the plus sign on the left side of each row in
the datagrid). Each DataTable in the DataSet is 1:1 with a view in a
database. The dataset is the DataSource for a DataGrid (pretty common). I
want to update the database each time the datasource (specifically the table
altered) is edited like so: each time a user edits a value inthe datagrid and
then changes rows I'm catching the RowChanged event. This works fine for the
"top level" DataTable, but for each table that I navigate to, the RowChanged
event is fired and the DataSet.HasChanges() returns false. The reason is
probalby trivial, but I'm confused about why the behavior is different for
the top level DataTable? Interestingly enough, if I make a change to a
related ("child") table and change rows then DataSet.HasChanges() returns
false, and then if I make another change causing RowChanged to fire again,
then HasChanges() is true.
What am I missing?

Tyson
 
G

Guest

FWIW I found posts specifically related to this in threads:

"RowChanged Event"
"DataTable and RowChanged Event"

It seems like the behavior we're all talking about is an actual bug, or
(could it possibly be) that it is by design?

Tyson
 

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