[ad_1]
I have a datagridview with a checkbox default set to true on the code:
Protected Sub dgvStudent_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgvStudent.DataBound
Dim chkstudentid As CheckBox = CType(dgvStudent.Rows(10).Cells(1).FindControl("chkRequired"), CheckBox)
chkstudentid.Checked = True
This works fine, however, when I unchecked the checkbox and click on the submit button and reload the page it again checked the student checkbox.
Do I have to add another piece of code so that when the checkbox is not checked it is saved successfully?
[ad_2]