Gridview rowupdating empty singles and dating webs
Fortunately Grid View can also be used without attaching with the Data Source Controls. In this article we will see how paging, sorting and editing can be implemented in a Grid View control that is bound with a Data View (or Data Table) directly.
This calls for some extra coding from developer's end. As an example we are going to use Employees table of the Northwind database. Add three Bound Fields and a Command Field to the Grid View with the help of Fields dialog (see below).
The Cancel property allows you to cancel the sorting operation.
Further, you need to set Sort Expression property of the Bound Fields to the name of the column on which you would like to sort the grid.
18) Show Header: It sets a value showing whether the header row is displayed in a Gridview control or not.
19) Pager Template: It lets you to set the custom content for the pager row in a Gridview control.
The method essentially binds the Grid View with a Data View.
The Data View supplies all the records from the Employees table.