What is the difference between DataView and DataSet?

xiaoxiao2021-03-06  80

2002-01-10 11: 59: 19Z score: 0

DataView is just equivalent to a Table image, you can modify, add, delete data inside.

DataSet can contain multiple TABLE, that is, multiple DataView can be included.

In fact, in general, use DataView and use DataSet, but if you use Dataset, you may have a long way.

Such as:

DataView1.count

Be equivalent to

Dataset1.tables (0) .defaultview.count

TOP

Reply to: anggogo (anggogo) () Reputation: 97 2002-01-113 23: 48: 31Z score: 0

I love Dataset

TOP

Reply to: Soft21 (foggy kid) () reputation: 97 2002-01-12 05: 07: 58Z score: 0

Hello everyone, this problem, wonderful!

TOP

Reply to: niwalker () () Reputation: 100 2002-01-14 15: 43: 51Z score: 0

DataSet From a sense that it can be regarded as the structure of the database, you can put multiple DataTable in a DataSet, you can have multiple DataView in each DataTable, not only this, you can also set DataTable. Relationships and constraints, as well as multiple DataView of a DataTable, below is the general architecture of DataSet:

DataSet

------ TABLES

| ------- Columns

| ------- Rows

| ------- Contraints

------ RELATIONS

TOP

Reply to: Edyang (fossil) () Reputation: 100 2002-02-07 16: 44: 00Z Score: 0

A DataSet can contain a lot of DataTable, each DATATABLE contains 0 to multiple data records. DataTable has a DefaultView reflects the "original face" (possibly sorted) of the data taken from the database from a database. The biggest use of DataView is to achieve a perspective of a DataTable, which is useful for Data Binding. Simply put is that DataView implements various sort according to DataTable existing data (of course, DataTable raw data has been sorted in some standard) and data filtering (displays or hide certain data).

TOP

Reply to: Seeking_du (Terran ~ Looking for Pleocelin) () Reputation: 100 2002-03-04 22: 39: 13Z Score: 0

So many people are talking about DataSet, I add DataView,

DataView is to easily filter, filter, search, and operate the class of data items, which does not destroy the data of the tablet, each Table DEFAULTVIEW is equivalent to the DataView when the filter criteria is null.

TOP

Reply to: Whiteeat (White) () Reputation: 89 2002-03-14 16: 50: 05Z score: 0

DataView is a data window of DataTable. You can see the requirements that meet the requirements through this window, and you can even change the data you see.

In fact, it is a kind of document of Document / View.

TOP

Reply to: daehappy (pursue 120% batch) () Reputation: 100 2002-07-09 21: 38: 45Z score: 0UP! GZ!

TOP

Reply to: Ketao_78 (Tree wants and the wind) () Reputation: 101 2002-07-11 13: 18: 33Z score: 0

Yes, agree

DataSet

------ TABLES

| ------- Columns

| ------- Rows

| ------- Contraints

------ RELATIONS

DataSet can populate a lot of data and relationships

TOP

Reply to: Ketao_78 (Tree wants quiet and the wind) () reputation: 101 2002-07-11 13: 19: 15Z score: 0

Yes, agree

DataSet

------ TABLES

| ------- Columns

| ------- Rows

| ------- Contraints

------ RELATIONS

DataSet can populate a lot of data and relationships

TOP

Reply to: yanghx2000 (info) () Reputation: 100 2002-07-13 22: 14: 55Z score: 0

The main DataSet can have the relationship between data sheets

TOP

Reply to: lyhold (let you fly) () Reputation: 100 2002-07-16 09: 13: 54Z score: 0

DataSet is quite with Database (with Table Collection, Constraint.etc;)

DataView is quite with views (there can be multiple, depending on different conditions)

TOP

Reply to: w_rose (w_rose) () Reputation: 92 2002-07-21 12: 06: 23Z score: 0

DataView is a navigation for DataTable.

TOP

This problem has been bombed

转载请注明原文地址:https://www.9cbs.com/read-94933.html

New Post(0)