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
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.
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.
5. When execute the project we will see the following screen which is ready for inline editing when you are updating the record.
2 Comments so far
Leave a reply
ASP.NET Dynamic Data Inline editing…
You’ve been kicked (a good thing) - Trackback from DotNetKicks.com…
Maybe coupled with the Ra-Ajax InPlaceEdit control this would be even better; http://ra-ajax.org/samples/Ajax-InPlaceEdit.aspx