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
Solved

How to delete from DBGrid without warning message

Posted on 2006-11-14
3
150 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
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
Limbeck earned 250 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best Firemonkey component pack 1 119
Using idhttp to login to instagram 2 106
Delphi Mdi application Child forms get behind control 7 270
Delphi Seattle StructureView color 1 14
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 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