Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Wanted to know if it is possible to have the textbox value persisted across paging when the dataset which is bound to gridview is sorted on a particular first. To calrify, I have a gridview which has 2 bound columns and one template column having textbox. The datasource of the gridview is a collection, which before binding to gridview is sorted on a particular column. When the gridview is displayed, customer enters some value in the text box and then clicks on paging to move to another page. He changes the value on that page and when he comes back, the value in the textbox is not persisted.
I read on different forums that using state management i can persist the values, but since my datasource is sorted how will I correctly map the persisted textbox value to the collection row. An early reply wud be highy appreciated.
Thanks !
Posted

1 solution

Have a look into this article, This may help you.
Maintaining States of Selected CheckBoxes in Different Pages inside the GridView[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900