Re: Datagrid current row ?



I think if you do DoEvents just under the DataGrid1_Click() event, it helps
to let the pointer to the row you clicked catch up.
Sorry, in advance if this doesn't help.

"Luqman" <pearlsoft@xxxxxxxxxxxx> wrote in message
news:OcGvIr2wFHA.2728@xxxxxxxxxxxxxxxxxxxxxxx
>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
>
>


.