|
| Dataset,datatable.dataview |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.dotnet.framework.adonet.
| palpy |
HOW Dataset,datatable.dataview are related?
|
|
|
| |
|
| |
| |
| David Morrison |
From what I understand so far, a dataset is the container for one or more datatables. A dataview is a view on a single datatable that, among other things, is used for presentation of data and can be filtered (although a datatable can be used to present data too).
-- David.
<daveanddawn at mediaone dot net> "palpy" <Click here to reveal e-mail address> wrote in message news:72f401c152d5$30e4feb0$35ef2ecf@TKMSFTNGXA11... [Original message clipped]
|
|
|
| |
|
| |
|
| |
| Billy |
Hi,
DataView represents a databindable, customized view of a DataTable for sorting, filtering, searching, editing, and navigation.
A major function of the DataView is to allow data binding on both Windows Forms and Web Forms.
Additionally, a DataView can be customized to present a subset of data from the DataTable. This capability allows you to have two controls bound to the same DataTable, but showing different versions of the data. For example, one control may be bound to a DataView showing all of the rows in the table, while a second may be configured to display only the rows that have been deleted from the DataTable. The DataTable also has a DefaultView property which returns the default DataView for the table. For example, if you wish to create a custom view on the table, set the RowFilter on the DataView returned by the DefaultView.
DataTable represents one table of in-memory data.
The DataTable is a central object in the ADO.NET library. Other objects that use the DataTable include the DataSet and the DataView.
DataSet represents an in-memory cache of data.
The DataSet is an in-memory cache of data retrieved from a database, is a major component of the ADO.NET architecture. The DataSet consists of a collection of DataTable objects that you can relate to each other with DataRelation objects. You can also enforce data integrity in the DataSet by using the UniqueConstraint and ForeignKeyConstraint objects.
Best regards, Billy Zhang Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use. ? 2001 Microsoft Corporation. All rights reserved.
|
|
|
| |
|
|
| |
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|