Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cloning new row values in DataGridview
Message
From
21/07/2008 12:49:45
John Baird
Coatesville, Pennsylvania, United States
 
 
To
18/07/2008 11:51:28
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01332319
Message ID:
01332852
Views:
9
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform