Click here to Skip to main content
12,816,406 members (31,143 online)
Click here to Skip to main content
Add your own
alternative version


41 bookmarked
Posted 15 Mar 2007

Edit and Delete multiple Data in DataGrid in ASP.NET

, 18 Apr 2007
Rate this:
Please Sign up or sign in to vote.
Edit and Delete multiple Data in DataGrid in ASP.NET

Download - 22.7 KB

Screenshot - datagrid2.jpg

Screenshot - editGrid.jpg


I found it very common assignment to make a datagrid with multiple deletion option like HOTMAIL ..and that inspires me to write this code.Here is the code for editing and deleting multiple data with datagrid.


(Optional) Is there any background to this article that may be useful such as an introduction to the basic ideas presented?

Using the code

To use this code just unzip the file as I have not attached the whole project file so you need to add the pages in your project. and some modification as you always need.

Blocks of code should be set as style "Formatted" like this:

// Any source code blocks look like this
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
using System.Configuration;

namespace DelhiApp.Testing
    /// <span class="code-SummaryComment"><summary>

Remember to set the Language of your code snippet using the Language dropdown.

Use the "var" button to to wrap Variable or class names in <code> tags like this.

Points of Interest

Did you learn anything interesting/fun/annoying while writing the code? Did you do anything particularly clever or wild or zany?


Keep a running update of any changes or improvements you've made here.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer TATA Communications
India India
No Biography provided

You may also be interested in...


Comments and Discussions

Questionstoring webform data in pdf file in Pin
Rambabukasiboina2-Aug-07 5:22
memberRambabukasiboina2-Aug-07 5:22 
How can i store the user data in pdf formatted file in my local system with vb code.please send me the answer it's very important to me. is that possible in


AnswerRe: storing webform data in pdf file in Pin
rahul_bit2-Aug-07 20:07
memberrahul_bit2-Aug-07 20:07 
GeneralTry with ASP.NET 2.0 GridView Pin
Jaiprakash M Bankolli12-Apr-07 21:52
memberJaiprakash M Bankolli12-Apr-07 21:52 
GeneralNot able to run the appliaction Pin
honeyss26-Mar-07 2:38
memberhoneyss26-Mar-07 2:38 
GeneralRe: Not able to run the appliaction Pin
rahul_bit26-Mar-07 20:00
memberrahul_bit26-Mar-07 20:00 
GeneralRe:Thanks Pin
honeyss27-Mar-07 19:24
memberhoneyss27-Mar-07 19:24 

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.170308.1 | Last Updated 19 Apr 2007
Article Copyright 2007 by rahul_bit
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid