John Baird
Coatesville, Pennsylvania, United States
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only