DataTable,DataSet和Datagridview有什么区别? [英] What is the difference between DataTable , DataSet and Datagridview ?

查看:109
本文介绍了DataTable,DataSet和Datagridview有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我开始自学,偶然发现了DataTable,DataSet和DataGridView。我想知道这三者之间的区别以及这三者是如何相关的。?

Hello ,
I started to self study and stumbled upon "DataTable", "DataSet" and "DataGridView". I would like to know the difference between these three and how these three are related.?

推荐答案

A dataset is an in-memory representation of a database-like structure. It can have one or more datatable and define relations between them, key field etc.
A datatable is an in-memory representation of a single database table. You can think of it as having columns and rows in the same way.
A dataview is a view on a datatable, a bit like a sql view. It allows you to filter and sort the rows - often for binding to a windows form control.


DataGridView 是一个从 DataTable DataView 获取数据的控件数据集

DataTable 是一个内存表。

DataSet DataTable 对象的集合。
DataGridView is a control which gets data from DataTable, DataView or Dataset.
DataTable is an in-memory table.
DataSet is a collection of DataTable objects.


.NET DataTables,DataSet和DataGrids实用指南 - 第4部分 [ ^ ]


这篇关于DataTable,DataSet和Datagridview有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆