Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a gridview with checkbox against each row in gridview, now i checked two rows in gridview, now i need to display these checked rows to be checked even after running the form till it is unchecked manually..

plz help me out.
Posted
Updated 27-Mar-15 23:39pm
v3
Comments
OriginalGriff 28-Mar-15 5:50am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
And that makes no sense to me at all.
Perhaps an example of what you are trying to achieve would help?
Use the "Improve question" widget to edit your question and provide better information.
Deeepakk 28-Mar-15 6:03am    
i want my checked status of checkbox persist even after loading it again...
Peter Leow 28-Mar-15 5:50am    
You mean to keep the checked status after postback?
Deeepakk 28-Mar-15 5:59am    
yeah, i want my checked status to be constant.
Peter Leow 28-Mar-15 6:04am    
Put your initialization code for GridView in a if block that check for not postback, like this:
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
// your gridview binding code here
}
}

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