I
iforsyth
Have a paging datagrid with a checkbox control in column(0).
ViewState is enabled.
I check the checkbox in first row of the grid on a page and then
the program hits this event:
Private Sub dgRegGrid_PageIndexChanged(ByVal source As Object, ByVal e
As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles
dgRegGrid.PageIndexChanged
I then do a loop to check the checkbox state.
For i = 0 To dgRegGrid.Items.Count - 1
chk = CType(dgRegGrid.Items.Item(i).Cells(0).FindControl("chkAttended"),
CheckBox)
If chk.Checked = True Then
objCustomer.UpdateCheckBoxState(dgRegGrid.DataKeys(i),
"Y")
Else
objCustomer.UpdateCheckBoxState(dgRegGrid.DataKeys(i),
" ")
End If
Next
Oddly, the chk.Checked value comes up FALSE when the row is checked.
I have confirmed that the datakey matches the row being read in at the
time.
Any suggestions on how to get at these check values?
Ian
ViewState is enabled.
I check the checkbox in first row of the grid on a page and then
the program hits this event:
Private Sub dgRegGrid_PageIndexChanged(ByVal source As Object, ByVal e
As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles
dgRegGrid.PageIndexChanged
I then do a loop to check the checkbox state.
For i = 0 To dgRegGrid.Items.Count - 1
chk = CType(dgRegGrid.Items.Item(i).Cells(0).FindControl("chkAttended"),
CheckBox)
If chk.Checked = True Then
objCustomer.UpdateCheckBoxState(dgRegGrid.DataKeys(i),
"Y")
Else
objCustomer.UpdateCheckBoxState(dgRegGrid.DataKeys(i),
" ")
End If
Next
Oddly, the chk.Checked value comes up FALSE when the row is checked.
I have confirmed that the datakey matches the row being read in at the
time.
Any suggestions on how to get at these check values?
Ian