Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 21st, 2006, 12:41 AM
Registered User
 
Join Date: Mar 2006
Location: , , Russia.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I cancel deleting ?

I work in VS 2005.
I want to create data-bound application with SQL Server 2000.

I've created data-bound controls on the form by dragging my node from the Data Sources window onto the form.
BindingNavigator control was created too. It works good.
But I want to change work of his button DeleteItem.
I want before deleting item to ask ("Are you shure ?") and if answer "No" to cancel deleting.
I want to do it in Click event of button DeleteItem.

Help me please.
I'm sorry for my english.


Reply With Quote
  #2 (permalink)  
Old March 22nd, 2006, 01:55 PM
Registered User
 
Join Date: Mar 2006
Location: Moscow, , Russia.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

from
http://forums.microsoft.com/msdn/sho...78348&SiteID=1

The BindingNavigator has a property called 'DeleteItem'.
Change this property from 'BindingNavigatorDeleteItem' to '(none)'.
You can then delete the item (after confirmation) by using the BindingSource.RemoveCurrent method.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cancel appointment jeanhl BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 March 25th, 2008 03:55 AM
how about cancel a process kevsboy Beginning VB 6 0 February 12th, 2006 11:03 PM
Help me ! Cancel Update Error ! minhtri Pro VB Databases 0 August 28th, 2004 09:03 PM
Cancel a keystroke Kenny Alligood Access 4 June 12th, 2003 10:02 AM



All times are GMT -4. The time now is 08:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.