Solved

delete row in datagrid

Posted on 2003-11-08
4
328 Views
Last Modified: 2012-05-04
Hello all ,

what event occured when we delete one row in datagrid by keyboard delete key (in windows program)?
I want to control this delete but I don't know this event
please help me , thanks
0
Comment
Question by:mehrnoosh
4 Comments
 
LVL 4

Accepted Solution

by:
Tonylmiller earned 25 total points
ID: 9706845
I would say you would use the keypress event and see if it is the delete key, and if it is you could delete the current row.
0
 
LVL 20

Assisted Solution

by:TheAvenger
TheAvenger earned 25 total points
ID: 9708079
Try DataGrid.DeleteCommand
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now