locked
Checkbox and rowedit RRS feed

  • Question

  • User66371569 posted

    hi

    i have gridview  and column inside it checkbox   i want  when i check any row   edit mode 

    i tried  but not working

     Protected Sub GV1_RowEditing(ByVal sender As Object, ByVal e As GridViewEditEventArgs)
    
            ' GV1.EditIndex = e.NewEditIndex
    
    
            For Each gvRow As GridViewRow In GV1.Rows
    
                Dim chkItem1 As CheckBox = gvRow.FindControl("CheckBox1")
                If chkItem1.Checked = True Then
                    GV1.EditIndex = e.NewEditIndex
    
                   
                End If
                 Next
    
        End Sub

    Thursday, May 27, 2021 6:48 AM

All replies