Click here to Skip to main content
15,910,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have check boxes in last column of gridview1, when i check some checkBoxes of page index 1, and go to 2nd index to select some more items, and come back on 1 st index, i don't got any check box selected...
.
i don't want this.
how to prevent this,
i want that check boxes, remains selected when back to page index..
Posted

1 solution

Hi,
You have to set autopostback false for gridview.
 
Share this answer
 
Comments
Madhuri Gamane 3-Nov-14 6:58am    
in my application gridview don't have post back property
Mukesh Ghosh 3-Nov-14 7:07am    
Try like this in your checkBox inside grid

function returnfalse()
{
return false;
}


<asp:CheckBox ID="chkshow" runat="server" Checked='<%# Eval("show") %>' onclick="returnfalse()" />

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