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?
a source to share
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.
a source to share
Here is a GridView that supports bulk editing: http://blogs.msdn.com/b/mattdotson/archive/2005/11/09/real-world-gridview-bulk-editing.aspx
a source to share
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
a source to share
You should be able to set the GridViewRow.RowState for editing during the RowDataBound. Just make sure the RowType is DataRow.
a source to share