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

i have FORM1, in that i have button namely allowance , once i click allowance button i displayed with in data gridview inside of dynamic check box, i got the Row values of which clicked on check box

My problem is How to check values which clicked by the User

Example:

in Form1 user choose value of check box like "LOAN", once user close the form and open again means i want to check "LOAN" checkBox...

How to Do it...

Thanks !
Posted

Quote:
in Form1 user choose value of check box like "LOAN", once user close the form and open again means i want to check "LOAN" checkBox...

That means you have to maintain users selections even when the form is closed. You may, for instance create a class UserSelections and make it member of your Program (or of a parent form) or you may use serialization to save user selections on the disk.
 
Share this answer
 
v2
Comments
prasanna.raj 28-Apr-15 5:22am    
Yes i have stored in Global variable which user choose from check box, but i need how to make it again check the checkbox which i stored global variable...
XML
<ItemTemplate>
 <asp:CheckBox ID="chkSelect" runat="server" Checked='<%# Convert.ToBoolean(Eval("isapplicable")) %>' />
</ItemTemplate>


Use query to return 1 or 0 for "isloanamount" variable. If isloanamount value is 1 checkbox will be displayed as checked.
 
Share this answer
 
v2
Comments
prasanna.raj 28-Apr-15 4:26am    
Manoj i asking for windows application.. C#

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