Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Deleting a Row in DataGridView by keypress e.keychar = (char)keys.Delete

$
0
0
I have a datagridview which i dynamically populate the rows. After i selected a row and press the "delete" key on my keyboard I want to delete the selected row(s). Is this achievable? I tried the conditon "if (e.KeyChar == (char)Keys.Delete)" within gridview_KeyPress event but the actual pressing of the "delete" key is not caught...... please help
thanks in advance

Achievement provides the ultimate pleasure in life

Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>