Difference between a datatable and dataview

G

Guest

What are the main differences between a dataTable and dataView? Does one
perform better than the other?
 
C

Cor Ligthert [MVP]

DotNetGuy

There is no difference between those two. In every datatable is inbuild a
dataview named the defaultview. Beside that you can create extra (data)views
on the same datatable, wich tells how the datatable is processed (viewed),
although that does not returns than datarows, however views on those rows
(Datarowviews). However in that is told which datarow it affects.

I hope that this gives an idea.

Cor
 
M

Miha Markic [MVP C#]

Hi,

DataTable is the actual store of data.
DataView is a view on the DataTable and gives you features like sorting and
filtering while it doesn't hold any data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top