The handler for sort event is registered by setting the On Sorting property of the List View to the handler name.List View provides various templates which we can use to display the data.

In Grid View, the Edit/Update/Delete feature is an inbuilt one and can be achieved without writing a line of code with the help of Data Source controls.

Likewise, the List View control also have inbuilt Edit/Update/Delete feature and additionally, insert feature is also introduced as an inbuilt one.

NET 3.5 introduced two new data bound controls List View & Data Pager .

List View Web server control enables us to display the data from a data source and if a Data Pager is attached then it enables paging in the List View.

We have explored the basics and adding paging feature to List View control through my previous articles List View Control in ASP. Like my previous articles on List View control, we will add this feature in 2 scenarios.

Our next step in learning List View Control is to add edit/update/delete/insert feature to the List View control.

Drag a Sql Data Source control from the data tab of Visual Studio 2008.

Configure it with the Database Server; I have used a database in App_Data folder.

List View is a data bound control similar to Data List and Data Repeater controls but it provides edit, insert, and delete , sort operations on the data that it bounded like a Grid View control.

Unlike Grid View control List View gives the user full control over the rendering of the page.

Specify the Layout Template, Item Template, Edit Item Template, Insert Item Template that displays the List View similar to the previous section. To make the implementation simple, i have made it as inline query and it is a good practise to have it as SP's.