How to delete from DBGrid without warning message

I know this is not a nice thing to do, but the person I am writing the ap for wants to be able to delete records without a warning message popping up.  

He also insists that the DBGrid is always in edit mode, so I cannot just turn off dgConfirmDelete and use Ctrl-Del.  He has to use the delete button on the navigation bar, and that always gives a warning.

Is there a way to turn the warning off?

TIA

John
LVL 3
jdthedjAsked:
Who is Participating?
 
LimbeckConnect With a Mentor Commented:
havent checked it, but according to D6 help you should be able to use

DBNavigator.ConfirmDelete:=false

0
 
jdthedjAuthor Commented:
Thanks Edwin - don't know how i missed that one!

John
0
 
LimbeckCommented:
no problem, glad to be of help :)

Ed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.