E
Eiriken
Hello,
I have a result in a gridview. The result usually consists of thousands
of rows. The gridview has sorting and paging enabled. I have added an
additional column in the gridview, where users can select rows by
clicking a checkbox. The reason for this is to allow users export only
selected rows to a PDF or Excel.
This works fine if the selections are only done on one page. As soon as
users are changing to a different page, the selections made on the
previous page are gone. Thats too bad. I guess a possible solution
would be to add an event on the checkbox, and add the selections to a
collection and store them in a Session. However, that would cause a lot
of postbacks (and flickering), and is not the best solution in my
opinion. Another solution is to add selections to a collection on the
event of changing the page.
Does anyone else have a better solution for this?
Thank You.
Eiriken
I have a result in a gridview. The result usually consists of thousands
of rows. The gridview has sorting and paging enabled. I have added an
additional column in the gridview, where users can select rows by
clicking a checkbox. The reason for this is to allow users export only
selected rows to a PDF or Excel.
This works fine if the selections are only done on one page. As soon as
users are changing to a different page, the selections made on the
previous page are gone. Thats too bad. I guess a possible solution
would be to add an event on the checkbox, and add the selections to a
collection and store them in a Session. However, that would cause a lot
of postbacks (and flickering), and is not the best solution in my
opinion. Another solution is to add selections to a collection on the
event of changing the page.
Does anyone else have a better solution for this?
Thank You.
Eiriken