I am using a member table to get names from table and another Fee table so that to display the chechbox to show if fee is paid or not.
The database datatype is set as bit so that it displays a checkbox in the datagridview. How can i update my table if i chech any of the checkbox a screenshot can be seen below :
http://i52.tinypic.com/33lpdl1.jpg
Thanks
Loading
Sam HobbsPosted Apr 26, 2011, 5:43 PM
Abhimanyu K VatsaPosted Apr 26, 2011, 2:42 PM
Mark FenechPosted Apr 26, 2011, 12:29 PM
Abhimanyu K VatsaPosted Apr 26, 2011, 11:21 AM
Mark FenechPosted Apr 26, 2011, 11:04 AM
Abhimanyu K VatsaPosted Apr 26, 2011, 10:40 AM
VB.NET:
Dim result As byte
result = Convert.ToByte(chkID.Checked)
C#:
byte result;
result = Convert.ToByte(chkID.Checked);
now store the result in DB.