DataGrid .NET Server Control

The DataGrid control is a multicolumn, data-bound (bound to a data source—an object that supports an ICollection interface—ArrayList, DataView) grid that displays data in a tabular fashion (rows and columns). In order for the DataGrid to render any HTML elements to the page, the DataGrid must be bound to a data source that supports this interface—ICollection. When the DataGrid is rendered to a web form, an HTML table is created (<table>). As you probably are aware an HTML table has four parts:

  • Table Header— The top row in the table.

  • Table Row— Spans the width of the table, containing one or more columns.

  • Table Column— Spans the height of the table, containing one or more rows.

  • Table Footer— The last row in the table. ...

Get Programming Data-Driven Web Applications with ASP.NET 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.