Here I have one problem like when the user double clicks on the mshflexgrid for selecting a row, some times it will return the correct row number or else return -1 row number. I can't figure out why it is happening, Please give me some solution.
This is the Code:-
Private Sub mshgridcustomer_DblClick()
If mshgridCustomer.Rows > 0 Then
With mshgridCustomer
'.Row = .MouseRow + 1
.Row = .MouseRow
.Col = 0
unitid = .Text
txtid.Text = unitid
:::::::::::::::
End Sub
Thank You.
This is the Code:-
Private Sub mshgridcustomer_DblClick()
If mshgridCustomer.Rows > 0 Then
With mshgridCustomer
'.Row = .MouseRow + 1
.Row = .MouseRow
.Col = 0
unitid = .Text
txtid.Text = unitid
:::::::::::::::
End Sub
Thank You.