Solved

How to delete from DBGrid without warning message

Posted on 2006-11-14
3
149 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

775 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