Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cloning new row values in DataGridview
Message
De
21/07/2008 12:49:45
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
18/07/2008 11:51:28
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01332319
Message ID:
01332852
Vues:
8
>User can add new row to Winforms DataGridView by pressing Ctrl+down arrow or by clicking in last row.
>
>How to initialize new row values from last row which was current ?
>
>How to get last row number which was current if Ctrl+Down arrow key was
>pressed ?

There is a DataGridView.RowsAdded event that fires when a new row is added to the grid. You could put code in there, to dupllicate the previous rows values. As Bonnie stated, you'd have to keep track of which row was the last row current.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform