Welcome to the Xceed Community | Help
Community Search  
More Search Options

Autofilter with LinqToSql and SqlCE

Sort Posts: Previous Next
  •  04-05-2010, 7:02 PM Post no. 26403

    Autofilter with LinqToSql and SqlCE

    I am using LinqToSql and SqlCE.  When I do a autofilter in the Grid I
    get the exception below.  If I use the 3.5.9616.13400 version of the grid
    I do not get a error.  Is this a known issue?  I filled out a Support Form with repro code.


    System.NullReferenceException was unhandled
      Message="Object reference not set to an instance of an object."
      Source="Xceed.Wpf.DataGrid"
      StackTrace:
           at Xceed.Wpf.DataGrid.FilterCell.UpdateFilterExpressionFromCriterion()
           at Xceed.Wpf.DataGrid.FilterCell.DataGridItemProperty_FilterCriterionChanged(Object sender, EventArgs e)
           at System.EventHandler.Invoke(Object sender, EventArgs e)
           at Xceed.Wpf.DataGrid.DataGridItemPropertyBase.RaiseFilterCriterionChanged()
           at Xceed.Wpf.DataGrid.DataGridItemPropertyBase.set_FilterCriterion(FilterCriterion value)
           at Xceed.Wpf.DataGrid.FilterCell.OnFilterExpressionChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
           at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
           at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
           at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
           at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
           at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
           at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
           at MS.Internal.Data.PropertyPathWorker.SetValue(Object item, Object value)
           at MS.Internal.Data.ClrBindingWorker.UpdateValue(Object value)
           at System.Windows.Data.BindingExpression.UpdateSource(Object value)
           at System.Windows.Data.BindingExpressionBase.UpdateValue()
           at System.Windows.Data.BindingExpression.Update(Boolean synchronous)
           at System.Windows.Data.BindingExpression.UpdateSource()
           at Xceed.Wpf.DataGrid.FilterCell.UpdateSource()
           at Xceed.Wpf.DataGrid.FilterCell.OnApplyFilterExecuted(Object sender, ExecutedRoutedEventArgs e)
           at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
           at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
           at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
           at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
           at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
           at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
           at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
           at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
           at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
           at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
           at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
           at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
           at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
           at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
           at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
           at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
           at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
           at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
           at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
           at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
           at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
           at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
           at System.Windows.Input.InputManager.ProcessStagingArea()
           at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
           at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
           at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
           at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
           at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
           at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
           at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
           at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
           at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
           at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
           at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
           at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
           at System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG& msg, Boolean& handled)
           at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
           at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
           at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
           at System.Windows.Threading.Dispatcher.Run()
           at System.Windows.Application.RunDispatcher(Object ignore)
           at System.Windows.Application.RunInternal(Window window)
           at System.Windows.Application.Run(Window window)
           at System.Windows.Application.Run()
           at XceedFilterRepo.App.Main() in C:\Users\mikebu\Documents\Visual Studio 2008\Projects\XceedFilterRepo\obj\Debug\App.g.cs:line 0
      InnerException:

  •  04-06-2010, 9:22 AM Post no. 26409 in reply to 26403

    Re: Autofilter with LinqToSql and SqlCE

    Hi Mike,

     

    Please can you provide us with your project that reproduces the submitted error stack trace for our investigation? Thank you for the requested information.


    Xceed - Software Developer and Technical Support
  •  04-06-2010, 3:55 PM Post no. 26412 in reply to 26409

    Re: Autofilter with LinqToSql and SqlCE

    I did via your Support Form yesterday.  Can you confirm you have it?
  •  04-08-2010, 3:20 PM Post no. 26436 in reply to 26412

    Re: Autofilter with LinqToSql and SqlCE

    Do you have the repro I sent in via the Support Form Monday?

    Mike

  •  04-13-2010, 3:46 PM Post no. 26484 in reply to 26436

    Re: Autofilter with LinqToSql and SqlCE

    Can someone from Xceed let me know if this problem has been fixed with the new 3.7 release or if there is something wrong I am doing?  I have sent in a repro via the Support Form but no-one has contacted me about it.

  •  05-04-2010, 3:00 PM Post no. 26705 in reply to 26484

    Re: Autofilter with LinqToSql and SqlCE

    Hi Mike,

    I apologize for the lack of follow-up in this thread. I found the email you sent and informed the development team. I was awaiting a confirmation from them before posting. This was confirmed as a bug and has been fixed, it will be available in a service release later this summer.

    In the meantime, the workaround we found is to put the FilterRow in the FixedHeaders instead of the Headers.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
  •  06-11-2010, 12:10 PM Post no. 27149 in reply to 26705

    Re: Autofilter with LinqToSql and SqlCE

    This issue is now fixed in the latest version, which can be downloaded in our Updates section here:

    http://xceed.com/pages/TopMenu/Downloads/Updates.aspx?Lang=EN-CA

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.