J
James
I've added a template column to a DataGrid that contains a checkbox control.
The default value for this checked. All items are checked on page load. I
add a column to my dataset that contains a default value as well. If a
record is unchecked in the grid, I need an event handler that can update the
dataset based on the ID or row. Right now I can add a OnCheckedChanged
handler on the HTML side of things and get that event to fire...which is
defined like this:
Public Sub cbSendTo_CheckChanged(ByVal sender As Object, ByVal e As
EventArgs)
' what goes here?
End Sub
But I can't figure out how to refer to the specific record in the DataSet
without doing some weird concatenation on ItemDataBound and then parsing the
control's name...which is way too hokey (I hope).
The default value for this checked. All items are checked on page load. I
add a column to my dataset that contains a default value as well. If a
record is unchecked in the grid, I need an event handler that can update the
dataset based on the ID or row. Right now I can add a OnCheckedChanged
handler on the HTML side of things and get that event to fire...which is
defined like this:
Public Sub cbSendTo_CheckChanged(ByVal sender As Object, ByVal e As
EventArgs)
' what goes here?
End Sub
But I can't figure out how to refer to the specific record in the DataSet
without doing some weird concatenation on ItemDataBound and then parsing the
control's name...which is way too hokey (I hope).