删除语句前加
if(MessageBox.Show("是否删除?","提示")==DialogResult.OK)
{
    删除语句................
}

解决方案 »

  1.   

    在Key_Down事件中去捕获按键,再在里面写确认过程。
      

  2.   

    请大家写个实际的例子,因为KEY_Down中还得判断是否已选择整个行
      

  3.   

    http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q889q
      

  4.   

    How can I put up a confirmation question when the user tries to delete a row in the datagrid by clicking on the row header and pressing the Delete key?
    http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q889q
      

  5.   

    你要重新构造一下DataG,并在其事件中拦截按键即可。
      

  6.   

    我知道这个代码,可是好像使用起来总是有有问题,谁能给我一个简单的未例,
    我的EMAIL:[email protected]