Solved

How to delete from DBGrid without warning message

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now