Working with the DataGrid Control

The DataGrid control displays data in a tabular form. The control can be bound to a data table or a collection. The .NET Compact Framework's DataGrid control provides a limited subset of the functionality that the full .NET Framework's DataGrid control provides. Despite this limitation, the DataGrid control is still quite useful. The control allows you to bind to different data sources; customize which columns will be displayed; customize the colors, row header text, and column header text; and handle events that are fired when the user selects rows and cells in the grid.

The DataGrid control does not provide editing support. You can work around this by providing your own editing user interface when users click ...

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.