C
Chris Alm
I have a situation where a method listens to the RowChanged event for a
datatable. The problem I having is this..
The RowChanged event handler calls another method, passing in the
e.Row["ID_VALUE"] of the row that fired the event.
In the case where this is a .Add(dr) that has caused the RowChanged event to
fire.... the row that is referenced in e.Row (event arg for the RowChanged
event handler) is not actually in the table yet.
If I do a dt.Select() or a dt.Rows.Count,,, it is obvious that the row
firing the event has not actually been added to table yet.
Why is this happening? Is this a bug? Why would the row fire the table event
and not be in the Rows collection for the table???
datatable. The problem I having is this..
The RowChanged event handler calls another method, passing in the
e.Row["ID_VALUE"] of the row that fired the event.
In the case where this is a .Add(dr) that has caused the RowChanged event to
fire.... the row that is referenced in e.Row (event arg for the RowChanged
event handler) is not actually in the table yet.
If I do a dt.Select() or a dt.Rows.Count,,, it is obvious that the row
firing the event has not actually been added to table yet.
Why is this happening? Is this a bug? Why would the row fire the table event
and not be in the Rows collection for the table???