Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataRelation Prevent my DataSet Updates!!
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00758171
Message ID:
00760023
Vues:
15
The datagrid will change when you move the parent record. That is what you want, I assume. The datagrid for the child records will reset to the top when you change the parent. You would need to manually change it to another row if that is what you want.

>I get it to work for the first row, by using the following code:
>
>Me.BindingContext(myDS, "Measure").Position = Me.dgMeasurements.CurrentRowIndex
>
>
>it works for the first row in the parent table, but I moved to the next row in the parent table, .CurrentRowIndex does not match the correct position in the datagrid, because there is a relation between the parent & child table so eveytime the selected row in the parent table changed the number of rows in the datagrid changed according to the no. of rows in child table so evertime the datagrid .CurrentRowIndex will strart from "0".
>
>Cathi, do you suggest another method to use?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform