GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  Programming  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 114 of 260    Print  
Is it possible to edit multiple records at a time in a ASP.Net datagrid??
Data should come from Database in a grid and make some changes then update the records by a single command command button;
Updated data should be stored back in the database.

  
Total Answers and Comments: 4 Last Update: July 15, 2006     Asked by: pushp 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 29, 2006 06:12:26   #1  
Amol        

RE: Is it possible to edit multiple records at a time ...

The ItemCommand event is raised whenever any button associated with an item in the DataGrid is clicked.So we can have only one ItemCommand event handler in one datagrid.

Thus we can edit one records at a time.

Regards

Amol


 
Is this answer useful? Yes | No
March 29, 2006 06:19:11   #2  
sohail sayed        

RE: Is it possible to edit multiple records at a time ...

Datagrid contains a property called as editItemIndex which specifies the index of the row that will be in the edit mode
U can point to one row at a time by specifying  the index of that row in EditItemIndex and hence u cannot edit more than one row at a time in a datagrid (U can always update multiple rows in the Database).
In case of deleteing however u can make a template column with checkbox and using an button(which is not in the Datagrid) delete all those rows that are checked.


 
Is this answer useful? Yes | No
April 19, 2006 22:46:58   #3  
jimlocigno Member Since: April 2006   Contribution: 1    

RE: Is it possible to edit multiple records at a time ...

I'm new to .NET but upon researching something else happened to run across this about a week ago.  According to this article it is possible. However, I have not yet tried this.

(Right after the Introduction there is a section called Making the entire datagrid editable).

http://aspnet.4guysfromrolla.com/articles/121504-1.aspx

Jim


 
Is this answer useful? Yes | No
July 15, 2006 05:28:09   #4  
binith        

RE: Is it possible to edit multiple records at a time ...

yes thats right

it is possible to edit the entire data grid . but the thing is that u have to place a button control and write code to update table in the click event of button.

if u need the code for displaying datagrid with fully editable mode then check the link specified above


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape