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

Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Apr 26, 2011, 6:40 AM EDT
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.
Mark Fenech81 reputationPosted Apr 26, 2011, 7:04 AM EDT
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Apr 26, 2011, 7:21 AM EDT
Mark Fenech81 reputationPosted Apr 26, 2011, 8:29 AM EDT
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Apr 26, 2011, 10:42 AM EDT
Sam HobbsRank #108 · 20.5K reputationPosted Apr 26, 2011, 1:43 PM EDT