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
 

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

Back
Top