Click here to Skip to main content
15,892,797 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Database structure as follows in Ms Access as follows;

Day Text
Session1 yes/No (data Type)
Session2 yes/No
Session3 yes/No
Session4 yes/No


Design as follows in datagridview ;

Day Session

Monday checkbox1 checkbox2 checkbox3 checkbox4
to

saturday


in the run mode,

for example monday i select the checkbox1,
for tuesday i select the checkbox3 and save in the database.


using check box how can i save in the database.

for that how can i do using c sharp



Note it is windows application.


Please help me.
Regards,
Narasiman P
Posted
Comments
bunzitop 8-Mar-13 8:30am    
Do you want to save the data on the check event of checkBox or you want to save the value of checkBox into database, plz make it clear/

1 solution

i think checkbox is not a good idea if want to save data for a day, radiobutton will do the best,

for both,

write code for checkbox1_checkedchange(object sender, eventargs e)


if checkbox1.checked==true
{
Execute query to save Data
}
 
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