Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to delete from DBGrid without warning message

Posted on 2006-11-14
3
Medium Priority
?
158 Views
Last Modified: 2010-04-05
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
0
Comment
Question by:jdthedj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
Limbeck earned 1000 total points
ID: 17944975
havent checked it, but according to D6 help you should be able to use

DBNavigator.ConfirmDelete:=false

0
 
LVL 3

Author Comment

by:jdthedj
ID: 17945189
Thanks Edwin - don't know how i missed that one!

John
0
 
LVL 19

Expert Comment

by:Limbeck
ID: 17945191
no problem, glad to be of help :)

Ed
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

604 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