Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to lock a row on a datagrid
Message
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00419805
Message ID:
00419819
Vues:
12
>I need to lock my bottom (Totals) row on a data grid yet allow all others to be edited. Any ideas?

You can't lock a row but ...

You can have 2 DataGrid on the form (one for the data, the other for the results).

You can also handle the Scroll event so that you can scroll both grid synchronously.
Private Sub grdResult_Scroll(Cancel As Integer)
    'Synchronize both grid
    grdTotaux.LeftCol = grdResult.LeftCol
End Sub

Private Sub grdTotaux_Scroll(Cancel As Integer)
    'Synchronize both grid    
    grdResult.LeftCol = grdTotaux.LeftCol
End Sub
What do you think of it?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform