Difference between dataset and dataview.

J

Jason Huang

Hi,

In the ASP.Net, what's the difference between DataSet and DataView? I what
situation will I choose to use the DataSet or DataView?
Thanks for help.

Jason
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Both classes are used all over the framework, Are you sure you mean "DataSet
and DataView" and not "DataGrid and XXX"?

a DataSet is a collection of tables and relationships amongs them, a
DataView is a "view" based on several criterias and posibly sorted of one of
those tables


cheers,
 
G

Guest

From the SDK documentation:

DataSet
=====
The DataSet object is central to supporting disconnected, distributed data
scenarios with ADO.NET. The DataSet is a memory-resident representation of
data that provides a consistent relational programming model regardless of
the data source. It can be used with multiple and differing data sources,
used with XML data, or used to manage data local to the application. The
DataSet represents a complete set of data including related tables,
constraints, and relationships among the tables. The following illustration
shows the DataSet object model.

DataView
======

Represents a databindable, customized view of a DataTable for sorting,
filtering, searching, editing, and navigation.

For a list of all members of this type, see DataView Members.
 

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