在DBGrid中,按ctrl+Delete不让删除,怎么实现

DBGrid的Options中的dgConfirmDelete改为:False;
在DBGrid所连接的DataSet的BeforeDelete事件中写:Abort; 
^_^

猜你喜欢

转载自www.cnblogs.com/jijm123/p/10990450.html