Friday, May 16, 2008 12:00 PM
What is a dataview and datagrid view in .net 2.0?
How is a datagridview different from a datagrid?
Friday, May 16, 2008 12:50 PMDatagridview is a control for displaying data while dataview is an in memory object holding data.
Saturday, May 17, 2008 12:59 AM
DataView -- a sorted and filtered subset of the rows in a DataTable. Bound controls always access data through DataViews, although sometimes this fact is hidden from the developer.
DataGrid -- the Windows Forms grid control that has been in .NET since 1.0.
DataGridView -- the Windows Forms grid control introduced in .NET 2.0. Intended to be a new and improved DataGrid. Recommended over DataGrid for new development. Generally better quality than DataGrid, although it does not provide the DataRelation navigation capabilities of DataGrid (which you probably don't need).
Yes, it is confusing that the word "view" appears in the name of a control and that all three of these components have similar names.
Thursday, November 12, 2009 2:57 PMI think you can get the data relation navigation if the DataGridView is bound to a DataSet and the DataSet's tables are connected with relationships.