Home All Groups Group Topic Archive Search About

Difference between a datatable and dataview

Author
6 Jul 2005 1:16 PM
DOTNETGUY
What are the main differences between a dataTable and dataView? Does one
perform better than the other?
Author
6 Jul 2005 1:36 PM
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
Are all your drivers up to date? click for free checkup

Author
6 Jul 2005 2:06 PM
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.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
SLODUG - Slovene Developer Users Group www.codezone-si.info

Show quoteHide quote
"DOTNETGUY" <DOTNET***@discussions.microsoft.com> wrote in message
news:5EE59E70-A195-44BA-B1DB-199805811D02@microsoft.com...
> What are the main differences between a dataTable and dataView? Does one
> perform better than the other?

Bookmark and Share