Wrox Programmer Forums
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 10th, 2005, 11:41 AM
Registered User
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multiplerecord editing in Datagrid

I have this big datagrid with m X n rows.
It uses the hotmail model and has a set of data.

The user wants to be update and edit at the same time and they do not want to have edit/add buttons on each row.So I created a big grid with checkboxes for selection and based on whether a guid is retrieved or not I update or insert the value.I do this from the Save Button Event Handler.

Is there some way to achieve the following:
1.Handling Insert Rows - I am able to add rows but I want to save what the user has typed in.I try to create a Save State and save the datagrid contents into the db and then recreate the datagrid and then add the new rows.For some reason this is not working?

I create the Datagrid in the page load event and I do not check the postback as that does not seem to be necessary hre.

2.I have two button columns - Copy Line and Copy an Item.When the user clicks on a Line I need to copy the line to the next empty row.
Again How do I save the state so the changes are not lost.If I save the grid after every textchanged event performance gets hit?

Saving it into the session did not work?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing Datagrid toddw607 ASP.NET 2.0 Basics 5 April 26th, 2007 03:06 PM
DataGrid Editing Problem gaurav_jain2403 .NET Framework 1.x 2 December 9th, 2006 04:33 AM
Editing in DataGrid abdul_owiusa ASP.NET 1.0 and 1.1 Professional 0 May 1st, 2006 07:56 AM
Problem with Datagrid Editing pramesh_it ASP.NET 1.0 and 1.1 Basics 0 April 17th, 2006 09:58 AM
Editing in Datagrid with ASP.NET rotsey General .NET 0 October 22nd, 2004 01:38 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.