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
 
Back
Top