Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a record to a dataset
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00975570
Message ID:
00975583
Views:
22
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"] = ""
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform