Posted on: 11/25/2014 3:33:59 PM | Views : 441

Hi,
I have a GridView with a checkbox in each row and with paging allowed.  The GridView is contained in a View (of a MultiView control).  I have a method that persists the selected checkboxes across different pages in the GridView.  This method is being called from the PageIndexChanging event.  Problem is when a user navigates to a page index and selects a checkbox then clicks an OK button, the last selected CheckBox is not persisted since there is NO change in the page index. If the user clicks another page number before clicking the OK button, the selection is persisted.  But this is an awkward behavior.  Users don't like to navigate to another page before they can click an OK button just to leave the GridView page.
What is a better approach for this?
Code Snippets are as follows.  (The SelectedSoilMusym, SelectedSlopeStringBuilder, and SelectedSnamesStringBuilder are all ReadOnly Propert ...

Go to the complete details ...