S
Stephen
How can I be notified AND have access to the new row when
a new row is added to my table?
It seems that the DataTable RowChanged event is called
when adding a new row BEFORE the row is actually inserted
into the table!
For example
DataTable table = new DataTable("test");
// Add RowChanged handler here
DataRow dr = table.NewRow();
//.. Add stuff to row
table.Rows.Add(dr);
Row changed event fired here but my
DataRowChangeEventHandler looks in table.Rows and
Rows.Count is still 0!
I see that DataTable.Columns supports a CollectionChanged
event which the documentation says is raised when a
column is added or deleted. Why is there not a
corresponding event for the Rows collection?
Thanks
Stephen
a new row is added to my table?
It seems that the DataTable RowChanged event is called
when adding a new row BEFORE the row is actually inserted
into the table!
For example
DataTable table = new DataTable("test");
// Add RowChanged handler here
DataRow dr = table.NewRow();
//.. Add stuff to row
table.Rows.Add(dr);
Row changed event fired here but my
DataRowChangeEventHandler looks in table.Rows and
Rows.Count is still 0!
I see that DataTable.Columns supports a CollectionChanged
event which the documentation says is raised when a
column is added or deleted. Why is there not a
corresponding event for the Rows collection?
Thanks
Stephen