J
jake
When I check checkboxes in my checkbox column(template column), the
checked property never becomes TRUE.
Yet if I set the checkbox checked property of the checkbox control to
TRUE, then this code:
Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles LinkButton1.Click
Dim myDataGridItem As DataGridItem
Dim chkSelected As System.Web.UI.WebControls.CheckBox
Dim ChartCurrGP(10) As String
Dim ChartCurrSalesDollars(10) As String
Dim ChartPriorGP(10) As String
Dim ChartPriorSalesDollars(10) As String
Dim ChartDesc(10) As String
Dim dr As String
Dim i As Integer = 0
For Each myDataGridItem In Datagrid1.Items
chkSelected = myDataGridItem.FindControl("chkSelection1")
Dim test As Boolean = chkSelected.Checked
If chkSelected.Checked Then
If i = 10 Then
Exit For
End If
recognizes that the checked property is TRUE.
What would cause this? The check marks display in the checkboxes of
the grid.
jake
checked property never becomes TRUE.
Yet if I set the checkbox checked property of the checkbox control to
TRUE, then this code:
Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles LinkButton1.Click
Dim myDataGridItem As DataGridItem
Dim chkSelected As System.Web.UI.WebControls.CheckBox
Dim ChartCurrGP(10) As String
Dim ChartCurrSalesDollars(10) As String
Dim ChartPriorGP(10) As String
Dim ChartPriorSalesDollars(10) As String
Dim ChartDesc(10) As String
Dim dr As String
Dim i As Integer = 0
For Each myDataGridItem In Datagrid1.Items
chkSelected = myDataGridItem.FindControl("chkSelection1")
Dim test As Boolean = chkSelected.Checked
If chkSelected.Checked Then
If i = 10 Then
Exit For
End If
recognizes that the checked property is TRUE.
What would cause this? The check marks display in the checkboxes of
the grid.
jake