TechBubbles

ASP.NET Dynamic Data Inline Editing

Introduction

This post explains how to edit the data inline in grid view control. I explained the overview on ASP.NET Dynamic Data and creating a simple Dynamic Data Web site using Scaffolding.

How to edit the inline data in Grid view

1. Open the Dynamic Data Web site that you have created in Dynamic Data Web site using Scaffolding.

2. Open the Global.asax  file it looks like

Global

The Default route will look like above highlighted area. It took the table as database table name and action is one of List,Details,Edit or Insert. Comment the default route which shown above in the screen shot.

3. There are some routing statements put in the comments below the default route, we have to  un comment the section.

Global2

 

From the above new routing statement observe that instead action it is having ListDetails page for Action List and Details. So Same page is using for listing the results and editing the data.

4. You can find the ListDetails.aspx page under PageTemplates in the Dynamic Data Web Site.

Global3

5. When execute the project we will see the following screen which is ready for inline editing when you are updating the record.

Global4

2 Comments so far

  1. DotNetKicks.com August 30th, 2008 1:15 pm

    ASP.NET Dynamic Data Inline editing…

    You’ve been kicked (a good thing) - Trackback from DotNetKicks.com…

  2. Thomas Hansen August 31st, 2008 9:55 am

    Maybe coupled with the Ra-Ajax InPlaceEdit control this would be even better; http://ra-ajax.org/samples/Ajax-InPlaceEdit.aspx

Leave a reply