checkbox column RRS feed

  • Question



    how to know the value in the column of checkbox column of a datagridview . whether it is  checked or not



    Thursday, August 17, 2006 8:04 AM


  • Private Sub Dgv1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles Dgv1.CellContentClick

    If Me.Dgv1.CurrentCell.OwningColumn.Name = "theColumn" Then

    If CType(Me.Dgv1.CurrentCell, DataGridViewCheckBoxCell).Value = True Then

    'the what you want to do.

    End If

    End If

    End Sub

    Thursday, August 17, 2006 10:50 AM