Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datagrid select row problem again
Message
De
06/03/2002 05:47:45
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
Datagrid select row problem again
Divers
Thread ID:
00628874
Message ID:
00628874
Vues:
71
Hi,

My VB6 application form is using MS datagrid where it is populated with data,
so whenever my user select/click any of the row, I want to bookmark it so that
I can do some manipulation to it, but I can't get it to work.

On clicking the row, my bookmark is still remaining at the old value
until I click it again to get the current select row. Below is my code example
that will display the value 2 when I select the second row, but on selecting
back the first row, it will not trigger.

Private Sub DataGrid_RowColChange(LastRow As Variant, ByVal LastCol As Integer)

msgbox "The row = " & datagrid.Row

End Sub

I also had tried to keep track of the current row by using the code below too, but
it didn't work for me, it keep giving me the old value until I reclick it gain.

Private Sub DataGrid_SelChange(Cancel As Integer)

msgbox "The row = " & datagrid.Row

End Sub

Please kindly advise me how to solve this problem of letting my user
to click the row, where I will bookmark it for retrieve later.

Thank you
Best Regards
Virusim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform