Solved

How to delete from DBGrid without warning message

Posted on 2006-11-14
3
153 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 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

739 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