Thursday, May 6, 2010

GridView Control

The GridView Web server control is a full-featured data-bound control that displays data in tabular format, and provides the ability to sort, select, edit, and delete records from its associated data source

The GridView control displays one row for each record in the data source, and by default, generates a column for each field. You can, however, choose which fields in the data source will render in the grid.

The GridView control can automatically page over the data, if the underlying data source supports paging.

The GridView control must be bound to a data source; otherwise, the control will not render on the page.

Data binding
Data binding using the DataSourceID property, which allows binding the GridView control to a data source control.

Data binding using the DataSource property, which allows binding to any data source that implements the ICollection or IEnumerable interface, including ADO.NET datasets and datareaders

No comments:

Post a Comment