For example, the URI Service.svc/Employees returns all of the records from the Employees table. The following figure shows Employee entity in the designer.Also read: Updating, Deleting records in Grid View control by writing your own methods | Inserting, Updating, Deleting, Paging and Sorting records in List View | ASP. It provides more flexibility in displaying and working with data from your database in comparison with any other controls.
In this tutorial you will learn adding sorting and paging in a Grid View Control, Implement Two Column Sorting, Create Code for Custom Sorting, Editing the Grid View control data, Deleting Displayed Records, Inserting Records and Using Templates.Sorting and paging can be added to the Grid View control without writing any code. In Design view, right-click the Grid View control, and then click Show Smart Tag. On the Grid View Tasks menu, select the Enable Sorting box. The column headings in the Grid View control change to links. On the Grid View Tasks menu, select the Enable Paging box. Before you begin developing a WCF data service it would be useful to quickly glance over the two key technologies that make WCF data services - REST and OData. REST architecture makes use of existing and time proven protocol for communication instead of inventing a new one.REST style communication relies on HTTP protocol for data transfer.
This article gives you a jump start in creating and consuming WCF data services.
It also shows how queries can be executed in asynchronous manner and illustrates how paged data can be dealt with.