Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a record to a dataset
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00975570
Message ID:
00975583
Vues:
23
Hi Kevin.. thanks for your reply
I suspected something like that would have to be done and was just 'hoping' there would have been an easier /shorter way to do it.

The problem with this is that
1) You have to cycle through each field and initialise it
2) You have to test on the 'type' of eacj field if its to be done generically
3) 2 Years on when you add an extra field to the table, it means having to
go through each piece of code (in evry file in the APP and checking where you have 'added' a record

.... Appe Blank was just so easy.... it did it all for you !!


Regards
Gerard



>Just as a follow-up, you can also do this...
>
>
>
>DataRow DrNewRow = myTable.NewRow();
>DrNewRow["firstname"] = ""
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform