The DataGrid control supports the display, entry, and selection of data in table format, with row and column access. This section shows a simple use of DataGrid to display database and XML data. In Figure 6.15, for example, a data grid is used to display the Access database food description table we worked with in Section 5.10.
DataGrid is a drag-and-drop control of the Windows Forms designer. We simply drop the grid on the form, then position and size it. Our work involves getting the data into the grid. Typically, this is a two-step process:
We retrieve ...