R
Reader
Hello,
I have a typed dataset and I have the following loop.
foreach (DataTable myTable in DataStore.Tables)
{
myTable.RowChanged += new DataRowChangeEventHandler( Row_Changed );
myTable.RowDeleted += new DataRowChangeEventHandler( Row_Changed );
}
The Odd thing about this is that the program will fire the RowChanged event
perfectly but it NEVER calls the RowDeleted. I have tried it with the
RowDeleting and it does call the RowDeleting event but this is not what i
need since I cannot tell when in a child table that is activated via a
cascade to determine if the parent record was the cause of the cascade or if
the individual child record was being deleted by itself.
If there is just a way to determine if a child record's deletion is not
caused by a cascade then this would greatly help. And if it is possible to
use it in the RowDeleting since this seems to be the only RowDelet* event
that I can get working.
-Thanks
I have a typed dataset and I have the following loop.
foreach (DataTable myTable in DataStore.Tables)
{
myTable.RowChanged += new DataRowChangeEventHandler( Row_Changed );
myTable.RowDeleted += new DataRowChangeEventHandler( Row_Changed );
}
The Odd thing about this is that the program will fire the RowChanged event
perfectly but it NEVER calls the RowDeleted. I have tried it with the
RowDeleting and it does call the RowDeleting event but this is not what i
need since I cannot tell when in a child table that is activated via a
cascade to determine if the parent record was the cause of the cascade or if
the individual child record was being deleted by itself.
If there is just a way to determine if a child record's deletion is not
caused by a cascade then this would greatly help. And if it is possible to
use it in the RowDeleting since this seems to be the only RowDelet* event
that I can get working.
-Thanks