Click here to Skip to main content
15,867,765 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
can any one tell me which one is better between DataTable or List?
Posted

They is no such thing: they are different structures, meant for different purposes. Trying to find "the best" is like arguing if bicycles are better than delivery vans.

For some things, a DataTable is ideal - particularly if you are dealing with anything that is sourced from, or intended for a tabular data souse such as a database.
For others, a List is ideal as it is simpler, easier to work with and somewhat more flexible.

Not a case of "best" - just horses for courses.
 
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