check box in vb.net windows application

Posted by Kannan1986 under VB.NET on 3/29/2010 | Views : 3719 | Status : [Member] | Replies : 2
hi all,

i have some problem in vb.net windows application.

that is ,

i have a datagridview with two columns student_name,checkbox..
if any student present i have check the checkbox..else uncheck the check box..

but i dont know how do store these values in sql database using vb.net windows application....




Thanks & Regards,

kannan.s




Responses

Posted by: Vuyiswamb on: 3/29/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Kannan1986

You can add a field named "Present" as a Bit and decide if the student is present then "1" and absent is "0" , then in the Grid there is property i cant remember what it was , but it allows you to change the status of the checkbox based on the date that is found in that field.



Thank you for posting at Dotnetfunda
[Administrator]

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 3/29/2010 [Member] Bronze

Up
0
Down
Hii friend

ref this article to solve you problem


http://www.vbdotnetheaven.com/UploadFile/dbeniwal321/CCWF08282009064019AM/CCWF.aspx


Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response