views:

43

answers:

2

I am trying to have a listview which will work like a table with paging. My problem is I need to be able to add more than 1 row at a time. ie I want to click "add new row" multiple times on the same page without the page changing and without the rows I'm adding going away.

Basically I need the user to still see the already inserted rows as well as the rows they are planning to insert on the same page. This would mean the page size is temporarily larger than it should be. The new rows would be added to the end of my data source when the user goes to another page or clicks a separate save button.

Is this possible? Thanks.

+1  A: 

Check this out: http://mattberseth.com/blog/2008/05/bulk_inserting_data_with_the_l.html

Brian
Thanks, but I've seen that, I might be wrong but I believe his solution does not help me. He does not do paging, so rather then having a click button to add a new blank row he simply displays 8 blank rows at a time.
Serg
He binds blank customers to the listview; you can bind one blank object that you are binding, and add additional logic to add blank objects when you click the add new button.
Brian
A: 

Perhaps I am misunderstanding, but if I bind that added row won't it get re-paged and hence not show up when I get back from the server.. If I have page size=5 and add an item and rebind then when it goes back to display the data it will still show 5 but I need it to display 6 now until the user changes pages.. The user must not lose focus of what they are looking at/adding, until they chose to go to another page (at that point I actually put all the added rows on the last page.)

serg