Bulk editing GridView in ASP.Net

What is the best way to achieve bulk mesh editing in ASP.net? I don't want the user to have to click edit on every single line to change it. It would be much better if they could make all the changes and then submit them in one go.

I want something like


Item1 xxxx

Item2 xxxx

Item3 xxxx

Add to


Where x is a checkbox.

Is a grid even a good way to achieve this?

0


a source to share


5 answers


Try the following:



In your gridview create a template column with text fields, then fill everything with databinder to get default data from database. put the bottom page and in it create a loop that loads all the rows of the gridview and looks for the generated template column. Complete the textbox with a write this to the dataset. Then you can use my code I posted on this thread with one line saving the entire dataset.

+1


a source


BulkEditGridview from RealWorldGrids does exactly what you want.



+1


a source


+1


a source


I wonder if any help can help Matt Berseth on the bulk introduction (listed, but this might help you):

http://mattberseth.com/blog/2008/05/bulk_inserting_data_with_the_l.html

0


a source


You should be able to set the GridViewRow.RowState for editing during the RowDataBound. Just make sure the RowType is DataRow.

-1


a source







All Articles