Datagrid current row ?



I have put following in Click of Command Button in VB-6.

Private Sub DataGrid1_Click()
a = Me.DataGrid1.Columns(1).Value
MsgBox a

End Sub



When I run the project, and click on Row No. 2, it gives me value of 1st
Row, and then I click on Row No. 5, it gives me value of Row No. 2 and so
on.
It means, whenever I click on any new row, it gives me the value of last
visited row, instead of the current row, what am I missing please ?

As there is no textmatrix like flexgrid, how can I retrieve the Current Row
Number on which I clicked so that I can bookmark and retrieve the value.


Best Regards,

Luqman


.