Click here to Skip to main content
15,887,333 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I've been using a lot of DataTables lately. I haven't been adding the DataTable to a DataSet. I'm wondering if there are advantages to adding it to a DataSet when there's only one DataTable.

I'm coding in C#

Also, is this common practice?

What I have tried:

My DataTables aren't being added to a DataSet.
Posted
Updated 24-Dec-17 9:11am

1 solution

No, there isn't. A DataSet is just a collection of DataTable objects and any DataRelations between them.

If you're got only a single DataTable, there's no advantage at all.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900