Click here to Skip to main content
12,827,730 members (45,034 online)
Click here to Skip to main content
Add your own
alternative version


11 bookmarked
Posted 16 Jun 2008

Editable Data View Example

, 16 Jun 2008 CPOL
Rate this:
Please Sign up or sign in to vote.
Editable Data View Example


This is the code for create editable grid with view and edit functionality


Basic Idea of this article to how to user the DataView functionally specially in Edit mode

Using the code

In this code you need to specify below code in aspx page, where you mainly use ItemTemplate which is for View purpose and EditItemTemplate which is for edit Template

you can also Commnad="Update" and find its event as given below code and same case for Delete also.

        <asp:TemplateField HeaderText="ID">
                   <asp:TextBox ID="txtID" runat="server" Text='<%# Bind("DetailsId") %>'></asp:TextBox>

Points of Interest

This code is mainly use for initial level understanding development for Dataview.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Amit M patel
Technical Lead Accenture Services
India India
I have total more then 6.6 years of IT Industry experience....

I have comlated my Diploma in Computern Engineering in 2003...

I have also cleared Microsoft Certified Professional Developer Specailist Exams for enterprise edition.

I have also cleared Microsoft Certified Technologies Specailist Exams for web,window and distribute application

I have write couple of article regarding .net,,SSRS, Documentum, COM,DCOM,web services,Indesign Server SDK which is published in many web sites.....

I have worked on differnet patterns like Factory, Decorative, facade, MVP.

You may also be interested in...


Comments and Discussions

GeneralI exit problem is i use 2.0 and SqlExpress Pin
sanjay3024-Oct-08 21:25
membersanjay3024-Oct-08 21:25 
GeneralNice example. Pin
Rajib Ahmed16-Jun-08 9:00
memberRajib Ahmed16-Jun-08 9:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170326.1 | Last Updated 16 Jun 2008
Article Copyright 2008 by Amit M patel
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid