Hello,
You can try the given code snippet, which will
allow the user to select
a row, only when they click on the check box
region.
Private Sub C1List1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles C1List1.MouseClick
Dim row, col As Integer
Me.C1List1.CellContaining(e.X, e.Y, row, col)
If col <> -1 Then
If Me.C1List1.SelectedIndices.Contains(row) Then
Me.C1List1.SetSelected(row, False)
Else
Me.C1List1.SetSelected(row, True)
End If
End If
End Sub
Now you can also define your
code in MouseDoubleClick event as well.
I hope this will
help.
Regards,
Allen Smith
Sorry if this is on the board already but I searched and couldn't find
anything. Is there a way in the List to set the selectionmode to checkbox and
then only allow the box to checked when the box is clicked. By default it
allows the user to click anywhere in the row to check the box and for some
things this is great but in my scenario I want to do a double-click event and
this unchecks the box also.
http://helpcentral.componentone.com/cs/forums/p/74983/203957.aspx#203957