uisng delete for datagridview

G

Guest

hi,
i would like to use delete key of keyboard to delete rows from
datagridview..
how can i acheive it?
 
R

Richard Lewis Haggard

The DataGridView has a property 'AllowUserToDeleteRows. Setting this to true
will allow the user to simply use the Del key to delete the selected row(s).

There is a notification event (RowsRemoved) which can be intercepted so that
the underlying data model can be updated to reflect the UI's concept of what
data exists.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top