DataTable-Events like RowChanging or RowChanged doesn't work

  • Thread starter Thread starter Johanna via DotNetMonster.com
  • Start date Start date
J

Johanna via DotNetMonster.com

Hello,

I have a problem with DataTable-Events like RowChanging or RowChanged. How
can I raise this events in the .NET Compact Framework? It simply doesn't
work.

Regards,

Joahnna.
 
Hello Joahnna,

Declare the datatable and add the event

DataTable dt = new DataTable("NEW");
dt.RowChanging +=new DataRowChangeEventHandler(dt_RowChanging);
dt.RowChanged +=new DataRowChangeEventHandler(dt_RowChanged);

Hope this helps,
Regards,
Arun.
www.innasite.com
 
Hi,

Thanks for the reply!
I have done this, but I forgot to add the new row to the Table!!
Sorry!!

Regards,

Johanna
 
Back
Top