views:

72

answers:

1

i have a databound datagrid in vb.net 2008. This is a program where i use the double click event multipal times.. but for some reason on a new form it's not working anymore. In code behind i selected the datagrid and double click event. when i double click on teh grid in debug mode, it never fires off the event(i put a breakpoint in). I've tried several other events and none of them are firing.

Here is what the event look like

 Private Sub dgWho2_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgWho2.DoubleClick

End Sub

and here is what it looks like for one that is working on another form

  Private Sub dgQueryStats_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgQueryStats.DoubleClick
    For Each O As asr.QueryStat In Os
        If O.RowID = CInt(Me.dgQueryStats.Tag.ToString) Then
            Me.lblQuery.Text = O.Text
        End If
    Next

    Me.cmdCopyQuery.Visible = True
End Sub

in comparing the properties of the two datagrid, other than the name and the binding, they look the same as well. wondering if anyone has an idea. thanks shannon

A: 

Err... found my problem.. i had a datagrid.enabled=false stuck down in some code...

Sorry about that shannon

jvcoach23