这是在子类中定义的,父类中当然没有了。详细说说,最好贴些代码

解决方案 »

  1.   

    给个在DataGrid中控制CheckBox的例子:
    Dim _item As DataGridItem
            Dim CheckBoxa As CheckBox
            For Each _item In DataGrid1.Items
                CheckBoxa = CType(_item.FindControl("CB"), CheckBox) '接收DataGrid 中CheckBox的参数
                If Not CheckBoxa Is Nothing Then
                    If CheckBoxa.Checked Then
                        Dim number As String = _item.Cells(0).Text
    ......                   
    cmd.ExecuteNonQuery()
                    End If
                End If
            Next