Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add and Save Button Functionality w/Dataset
Message
De
09/07/2004 17:27:07
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00922587
Message ID:
00922775
Vues:
16
Todd,

>>Adding EndEdit() fixed the problem. I did however have to put it in a different place, my "Save" button click event, to fit into my scheme of things.

Yeah, and that's fine too. I only put it there in my reply because it was convenient. <g>

>>Thanks Bonnie. You da (Wo)Man!

LOL!!! =)

~~Bonnie


>Hi Bonnie,
>
>>Nope, it's the .EndEdit() problem again. Change this part of your code and >I bet it will work:
>
>>?myNewRow = myDataSet.myTable.NewRow();myNewRow.BeginEdit(); // Not sure >if you need both Begin *and* End, but I know you need End.
>>myNewRow["myField"]=" ";
>>myNewRow.EndEdit();
>>myDataSet.myTable.Rows.Add(myNewRow);
>
>Adding EndEdit() fixed the problem. I did however have to put it in a different place, my "Save" button click event, to fit into my scheme of things. Ended up using the code below from another message you posted...
>
>int i = this.BindingContext[MyTable].Position;
>MyTable.Rows[i].EndEdit();
>
>Thanks Bonnie. You da (Wo)Man!
>
>Todd
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform