Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect a change made in a ds for a change log.
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00781301
Message ID:
00782559
Vues:
14
This is a Web Form. If I update the ds, then there is no change in the :

if(!myDataSet.HasChanges(DataRowState.Modified)) return;

DataSet xDataSet;
xDataSet = myDataSet.GetChanges(DataRowState.Modified);
// My function to identify what is changed.
// xDataSet has 1 transaction which I expect.
whatChanged(xDataSet);

I added an EndEdit before I run through the columns and I still don't see a visible change in :

lcDV = r[c, DataRowVersion.Current].ToString() ;
lcPV = r[c, DataRowVersion.Original].ToString();

??? I thinking it's a bug in .NET 2003 or beta 9 & 2003?


>How are you making the change to the DataSet? Programmatically or with Kevin's databinding? Make sure HasChanges is true and GetChanges is not returning null. If this is a Windows form then you need to call EndEdit to flush out the changes to the dataset.
>
>>Is there a bug in .NET 2003 & DataRowVersion? Actual code:
>>DataRowVersion shows same values in all 4 types of data. I am changing only
>>1 field's value and I FAIL to detect the change. Code below:
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform