New Posts New Posts RSS Feed: IEditableObject.CancelEdit() Error
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

IEditableObject.CancelEdit() Error

 Post Reply Post Reply
Author
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Topic: IEditableObject.CancelEdit() Error
    Posted: 12-May-2010 at 8:02pm
It's hard to tell what's going on here.  The exception basically says that the DevExpress grid can't find the bound property where the edit was cancelled, but that may or may not be related to the actual problem.
 
I'd start by constructing the simplest possibile solution with one bound column to a simple property (with no object navigation) that overrides CancelEdit and see if that works.  Then start changing the solution to match what you're trying to do above.
 
 


Edited by ting - 12-May-2010 at 8:03pm
Back to Top
orcities View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Aug-2007
Location: United States
Posts: 454
Post Options Post Options   Quote orcities Quote  Post ReplyReply Direct Link To This Post Posted: 11-May-2010 at 7:52am

I am getting the following error when I try and cancel an edit using DevExpress. Not sure which end this is on. If I override CancelEditCore the error is throw when it is called.

Key cannot be null.\r\nParameter name: key
 
Stack:
   at System.Collections.Specialized.ListDictionary.get_Item(Object key)
   at System.ComponentModel.PropertyDescriptorCollection.Find(String name, Boolean ignoreCase)
   at DevExpress.Wpf.Core.Native.BindingListAdapter.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
   at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)
   at IdeaBlade.EntityModel.EntityWrapper.OnPropertyChanged(PropertyChangedEventArgs e)
   at IdeaBlade.EntityModel.EntityWrapper.ForcePropertyChanged(PropertyChangedEventArgs e)
   at IdeaBlade.EntityModel.EntityWrapper.CancelEditCore()
   at IdeaBlade.EntityModel.EntityWrapper.System.ComponentModel.IEditableObject.CancelEdit()
   at DevExpress.Wpf.Data.StateGridDataController.CancelCurrentRowEdit()
 
Any help would be great.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down