Re: Datagrid current row ?
- From: "Richard T. Edwards" <r.t.edwards@xxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 20:55:04 -0400
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
>
>
.
- References:
- Datagrid current row ?
- From: Luqman
- Datagrid current row ?
- Prev by Date: Re: Internet Programming
- Next by Date: Re: Active Accessibility question
- Previous by thread: Datagrid current row ?
- Next by thread: Re: Call a VB Project from another VB Project
- Index(es):