Click here to Skip to main content
15,892,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get the check box value in datagridview from the database.

In Database records as follows;
CourseCode  Days   Sess1             Sess2            Sess3          Sess4
  REO        1    checkboxchecked checkboxchecked checkboxchecked checkboxchecked

Design as follows;

Course code Combo box

Datagridview as follows;
Days          1                2                 3             4

 1      checkboxchecked checkboxchecked  checkboxchecked  checkboxchecked 


when i click the Course Code (REO) i want to check from the datbase for the course REO, how many days session are checked in the database.

for that how can I do using csharp.

I want to check from the database for the course selected in the combobox and display in to the datagridview.

Regards,

narasiman P.
Posted
v2
Comments
[no name] 16-Mar-13 10:55am    
By any chance at all is your class going to be over anytime soon?

1 solution

You can use BIT Data type to store checked/unchecked Value in Database.

And when you fetch the data from SQL and Bind it to Grid view, it will automatically display the check box with checked/unchecked option.
 
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