row changing event

  • Thread starter Thread starter claire
  • Start date Start date
C

claire

Hi,

I have a windows form c# project using a typed dataset. When a row is
changed i need to
update the revision column of the dataset, before calling the
dataadapter.Update to update the database. I thought maybe i could use the
row changing event of the dataset to add one to the revision column for only
those rows that have changed. Will this work and if so how do i call that
method?

Thank you in advance.

Claire
 
Hi Claire
Yes I believe this should work .. you can do that this way
if( row.RowState == DataRowState.Modified )
{
// add you logic here

}
Hoep that helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

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