Click here to Skip to main content
15,390,197 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How I retrieve check-box value in c# from access database
Updated 20-Mar-13 5:30am
[no name] 20-Mar-13 10:37am
You connect to the database and query the values. What specific issue are you having trouble with?
Sandeep Mewara 20-Mar-13 10:38am
Where are you stuck?
ZurdoDev 20-Mar-13 11:00am
All you do is check its value. I don't think you are asking the question very clearly because the way it is stated it is very trivial. Please be more clear.
kashifjaat 20-Mar-13 22:48pm
How I retrieve value in check-box through Select Query????

When Loaded windows Form Check box state checked or unchecked ... display from access database???
Please tell me how do this....????
through Ole-db Reder

if you are wanting to repopulate the checkbox, just fetch the value from the database ( possibly a bool- you may need to enumerate it as a 0 or 1) and set the checkbox.checled property based on the value from the database.
If you are using Windows Forms, have a look at: A Detailed Data Binding Tutorial[^]

If you are using ASP.Net, have a look at: Mastering ASP.NET DataBinding[^]

If you are using WPF, have a look at: Data Binding Overview[^]

Best regards
Espen Harlinn

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