T
tshad
I can't seem to get my checkboxes to get checked for some reason.
I have 2 Datagrids and they are named Datagrid1 and Datagrid2.
My code is:
*******************************************************************************
theGrid = DataGrid1
if (sendor.id = "CheckAll2") or (sendor.id = "UnCheckAll2") then theGrid =
DataGrid2
for each oItem as DataGridItem in theGrid.items
theCheckBox = CType(oItem.FindControl("FullNameCheckBox"),CheckBox)
if (sendor.id = "CheckAll1") or (sendor.id = "CheckAll2") then
trace.warn("Setting Check to true theGrid.id = " & theGrid.id)
theCheckBox.Checked = true
else
theCheckBox.Checked = false
end if
Next
*******************************************************************************
The trace shows I am setting the control and am pointing at the correct
datatgrid. I normally don't have a problem setting the checkbox when
setting it from a value out of my Sql Statement.
Why doesn't this work?
Thanks,
Tom.
I have 2 Datagrids and they are named Datagrid1 and Datagrid2.
My code is:
*******************************************************************************
theGrid = DataGrid1
if (sendor.id = "CheckAll2") or (sendor.id = "UnCheckAll2") then theGrid =
DataGrid2
for each oItem as DataGridItem in theGrid.items
theCheckBox = CType(oItem.FindControl("FullNameCheckBox"),CheckBox)
if (sendor.id = "CheckAll1") or (sendor.id = "CheckAll2") then
trace.warn("Setting Check to true theGrid.id = " & theGrid.id)
theCheckBox.Checked = true
else
theCheckBox.Checked = false
end if
Next
*******************************************************************************
The trace shows I am setting the control and am pointing at the correct
datatgrid. I normally don't have a problem setting the checkbox when
setting it from a value out of my Sql Statement.
Why doesn't this work?
Thanks,
Tom.