DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 26 Jul 2007 19:15:42 -0000,    posted on: microsoft.public.dotnet.framework.windowsforms.databinding        back       

Thread Index
  1    Barry


BindingSource's CancelEdit doesn't work after navigating away   
I have a DataGridView bound to a BindingSource which has a collection
of objects as its data source. On the form, I have an Undo button. In
the button I have:

        BindingSource1.RaiseListChangedEvents = False
        BindingSource1.CancelEdit()
        BindingSource1.RaiseListChangedEvents = True

I have two issues with it.
1- If I dirty a record in the grid, navigate to a new record, and then
click Undo, the CancelEdit call does not revert the changed value.

2- If I don't navigate away, it does revert the changed value, but it
is excruciatingly slow.

The first issue is more critical, at this point. Any help is
appreciated.
Date:Thu, 26 Jul 2007 19:15:42 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us