Sushil Kumar
What is difference between DataGridView and DataGrid control in WinForms?
By Sushil Kumar in Windows Forms on Oct 15 2012
  • Dhaval Rathod
    Aug, 2020 4

    1. DataGridView control feature Description
    2. Multiple column types The DataGridView control provides more built-in column types than the DataGrid control. These column types meet the needs of most common scenarios, but are also easier to extend or replace than the column types in the DataGrid control. For more information, see Column Types in the Windows Forms DataGridView Control.
    3. Multiple ways to display data The DataGrid control is limited to displaying data from an external data source. The DataGridView control, however, can display unbound data stored in the control, data from a bound data source, or bound and unbound data together. You can also implement virtual mode in the DataGridView control to provide custom data management. For more information, see Data Display Modes in the Windows Forms DataGridView Control.
    4. Multiple ways to customize the display of data The DataGridView control provides many properties and events that enable you to specify how data is formatted and displayed. For example, you can change the appearance of cells, rows, and columns depending on the data they contain, or you can replace data of one data type with equivalent data of another type. For more information, see Data Formatting in the Windows Forms DataGridView Control.
    5. Multiple options for changing cell, row, column, and header appearance and behavior The DataGridView control enables you to work with individual grid components in numerous ways. For example, you can freeze rows and columns to prevent them from scrolling; hide rows, columns, and headers; change the way row, column, and header sizes are adjusted; change the way users make selections; and provide ToolTips and shortcut menus for individual cells, rows, and columns.

    • 0
  • Munesh Sharma
    Apr, 2014 23

    http://msdn.microsoft.com/en-us/library/ms171628(VS.80).aspx

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS