none
what is data view and a datagrid view

    Question

  •  

    What is  a dataview and datagrid view in .net 2.0?

    How is a datagridview different from a datagrid?

     

     

    Friday, May 16, 2008 12:00 PM

Answers

  • 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.

     

    Saturday, May 17, 2008 12:59 AM

All replies

  • Datagridview is a control for displaying data while dataview is an in memory object holding data.
    Friday, May 16, 2008 12:50 PM
  • 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.

     

    Saturday, May 17, 2008 12:59 AM
  • I 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.

    Rod
    Thursday, November 12, 2009 2:57 PM