How to set all rows in edit mode and how to save all rows again in GRIDVIEW


I.m looking for:

- a solution with vb-code to set all rows in the Gridview (Visual Webdeveloper 2005 professional) in edit-mode.
- After Editing a value and leaving this cell by the TAB-button automaticly go to the next cell (next row)
- After changing the values save them with one click...

Can someone help me out here. Searched a lot but cannot find a good solution.

Thanks in advance for responding


10/20/2008 8:24:20 PM 72751 articles. 3 followers. Follow

3 Replies

Similar Articles

[PageSpeed] 24

 I think it's possible, but I don't recommend such an UI. It's not a good practice to have more than one rows in edit mode. The best practices suggest using inline editing and saving the results with AJAX requests. You can configure saving the current field/row with AJAX call when the user presses TAB. It's also possible to move the focus to the next filed/row when the user presses TAB.
10/20/2008 8:52:09 PM



This "inline editing"  and saving with AJAX requests...... Do you know where to find examples?

Thanks for writing!



10/21/2008 2:53:43 PM


Have a look at these two links about setting all rows in edit mode and update them all:


Qin Dian Tang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
10/22/2008 8:49:19 AM

Similar Artilces:

Add new controls to a gridview row; when editing that row using the edit row feature in the gridview control.
Hi all  I have a questions that looks hard / complex to me, and i know you can help me in this. Q {  I have row in a Gridview and i have an edit option to it. I press the edit button, to edit the values in that row and update data all the way back to the database. Now when i press the edit button, i want a drop down list to be displayed that contain values for a particular field in my grid view. (for now only plain text boxes appear.) } I hope you understand my question, all i need to do is replace the text box controls with a dropdown list when i am editing a row in ...

GridView: Setting mulitple rows to edit mode?
Is it possible to set all of the visible rows in a GridView into Edit Mode at the same time?  Or do I have to use a different control for that?  I need to allow my user's to edit the grid without setting each row into edit mode one at a time.theregit - MCSE, MCDBA, MCTS Check this out:

Bind Dropdown control to a Row in Gridview contol in Edit mode with autogenerate columns = True;
Hello all,   Can some one help me out in How to Bind a Dropdown list control in Edit mode when autogenerate columns = 'TRUE' . When Autogenerating columns ,in Edit Mode I have to have TextBoxes and  a Dropdown list in one of the Columns .Can some one please help me with this .   Thanks in Advance. The first question that comes to mind is "why?"  Why can't you use the Templates to solve this problem?Assuming there's a good reason, you need to explain in more detail in relation to how the DropDownList relates to the bound data source as well as what the...

Data Controls insert rows into gridview then insert rows from gridview into SQL Table
Hello there, I'm still new at performing miracles with code . Currently I am having trouble with my latest coding adventure I have a web application which records jobs and labour assigned to jobs. The issue in particular I'm having is the way in which labour is to be assigned. I want to use standard controls (Textbox, Dropdownlist) to record the values into a gridview (ie,put multiple rows into the gridview using the controls). Then, when all the inserting is complete, the user clicks a submit button to insert all the rows from the gridview into a database table. The reason for...

how to set rows in edit mode ?
HeyI have problem with checkBoxField because I need to have editable checkboxField and I have something like checkbox with enabled = false; I am curious if ther is possibility to set all rows in edit mode so all checkboxFields are editable ?Jarod How are you displaying the checkboxes - are you displaying them in a detailsview or gridview?Gregor SuttieMCSD, MCAD, MCSD.Net I'm not sure we have enough information to answer your question. what method of creating an editable checkboxField are you using?  A gridview, a details view?  Custom code, and a repeater? Might want to post ...

How to chage the mode of the all rows in ther gridview to edit mode in the page load method ?
How to chage the mode of the all rows in ther gridview to edit mode in the page load method ? Is there any similar way of doing this as with DetailsView control ? DetailsView1.ChangeMode(DetailsViewMode.Edit);  Thanks, Here are some examples I have come across: AJAX And This: Hope this helps. -JOe Thank you Joezyz, The links were helpful very much....

Gridview row editing fields based on row data
Is there a way to change row editable fields in a databound gridview based on the rows data. For example letting a user edit all his and his fellows fields but preventing him from changing specific fields in his boss data on the same gridview? Help will be great fully appreciated. Thanks If I understand what you are saying is that you want to only allow a user to Edit certain rows within the GridView. If so, yes, you certainly can do this. What I would do is hide/display the Edit Button for a row based on the user's role or permissions. This can easily be done via the RowDataBound e...

Selecting a gridview row and keeping the last selected row in a gridview highlighted after mouse moves over a new row.
What is the best way to show a gridview row highlighted once selected and keep it highlighted once the mouse moves over a different row? Thanks, Steve hi,you can use <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="#FFFFFF" /> plz let me know if i misunderstood you Thanks for your help. One problem; however, is that after the row has been selected and I check the "grid.SelectedIndex" it has a value of -1 and not the index of the row that was selected on the grid. What do you recommend? Thanks, Steve hi, sorry i din...

GridView 101: row button takes me to page to edit that row
I've used gridviews on and off over the years and I never seem to get a handle on how to do the most basic things. Hard to search for too (). I've got a row of data and I've added an EDIT button (I'd edit the data in-place except that the data will need some special attention by the user, thus a new page). All I want the button to do is take me to my new page, specifying that datarow's id (perhaps in the querystring). Here's the relevant part of my code. You can see that my first column is the record's unique id, which the user doesn't need: <asp:Gri...

Gridview does not select row when in edit mode
Hi guys, I have gridview problem again. My gridview allows me to select a different row when I'm in edit mode on another row...  Obviously this is a problem because when the row being edited is updated, the selected index does not correspond and the whole thing crashes.  I don't have any custom code, it's just the normal edit, select, update etc, commands for the gridview.  I've tried removing the datasource, etc. but the problem appears to be the gridview itself. Any help whatsoever would be greatly appreciated.  Thanks guys... ASP.NET RULES! Oliver Mc...

How to set focus on the editing row in Gridview
When the user click on the edit row whicle is beyond visible limit, the page refreshes and edit row is not visble unless you scroll down again. How can I set the focus on editing row with out the need to scroll down.     Set the MaintainScrollPosition="True"   in your Page Directive. This will automatically scroll the page down to where it was on PostBacks. Ryan, Thanks a lot! It worked like a charm! -Sirisha Sweet, scratch another item off the To do list. Thanks....

GridView Edit Mode
I have a GridView built up by a main SqlDataSource. In this GridView there is a DropDownList in an EditItemTemplate which is populated by a second SqlDataSource. How would it be possible to populate this DropDownList using one or several values from the other columns of the row selected for editing?I decided to go for another solution and check the RowState like this: protected void Page_Load(Object s, EventArgs e) { if (Page.IsPostBack) { foreach (GridViewRow dr in dbGrid.Rows) { Response.Write(dr.RowIndex); if (dr.RowState == Da...

How do I know if a row is in edit mode in gridview?
I want to loop through all the rows to find the row that's in edit mode.  Thanks ChenPlease "Mark as an Answer" if you think my post had helped you!Thanks. Hi,Try this:foreach (GridViewRow row in gridView1.Rows) { if (row.RowState == DataControlRowState.Edit) { //Insert your code here } }  Sridhar If you just want to find the index of the edited row, use :GridView.EditItemIndexBy default, the value is -1.Antoine Griffard - MVPhttp://www.wygwam.com

How to get the data of a particular row in gridview without editing that row.
I have a gridview in a page in that ihave hyperlink as one column on click of that i want to go next page with the data present in that corresponding row. How shell i read the data from grid view for that pirticular row.On which event i can get the data. HI, the row that is selected should be passed into a string or an array or in sessionsthis can be done through this code  protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)    {        Label _lbl = new Label();      &...

Web resources about - How to set all rows in edit mode and how to save all rows again in GRIDVIEW -

GridView SelectedItem Binding Gotcha in WinRT
Last night when I was doing some WinRT hacking I was trying to setup databinding to the selected item in the GridView control and I ran into ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Advanced Search Gridview Latest News Releases All ...

CNW Group
... Services Beyond the Wire About CNW my CNW CNW Access CNW Directories Financials Webcasts Events my CNW All News Releases Advanced Search Gridview ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Add a Filter Gridview Latest News Releases All Today ...

New CmdLets of Powershell 2.0
New CmdLets of Powershell 2.0

Price Drop: Softbox
... objects- create product reflection- changing the background with something more interestingUse it as:- softbox- honeycomb softbox- gridview ...

Profile.aspx: ASP Alliance
.NET,ASP,ASP.NET,SQL,XML,HTML,ADO,ADO.NET,JavaScript,JScript,CSharp,VBScript and VB tutorials from AspAlliance.

Quick Answers - CodeProject
Questions - Free source code and tutorials for Software developers and Architects.; Updated: 25 Oct 2012 - Upcoming stories is a community based news site edited by our members. It specialises in .NET development techniques, technologies and tools including ...

View Features - ExtendASP
Call 847-681-9827 or Request a Demo View Features Testimonials Pricing About Us Coming Soon ExtendASP exposes every feature, more than any other ...

Resources last updated: 12/21/2015 8:47:43 AM