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

I have a problem with the gridview control, when I change the page in the gridview the information that was selected before will be lose, I need to persist the data that were selected after pagination.
This gridview has textbox and dropdownlist fields, It has 10 rows per page.

Another issue that I have is, I have to enter a code in the textbox, the dropdownlist that is in the same row has to be fill it but when I insert in another row the same the page do postback and the data that was selected in the previous rows will be lose. I only maintain the actual row data.

I'll waiting for your comments,

Thank You
Posted
Updated 11-Dec-14 2:53am
v2
Comments
mudgilsks 11-Dec-14 0:13am    
improve question,it is not clear where you stuck.
as i understand your problem is related to AutoPostBack of controls set value to "False"
ZurdoDev 11-Dec-14 9:02am    
I'd suggest getting a third party control that can support retaining selected rows.
vvlktvsv 11-Dec-14 15:55pm    
Did you check if your "ViewStateMode" property is enabled?
vijay chander 13-Dec-14 1:03am    
put the code, and put some more detailed information

1 solution

Try to use update panels when post back occurs in grid view.
 
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