Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
More Odd Behaviour From My SubClassed Grid
posted

Hi,

I've gotten over the styling problem (see post) I was hoping this was going to solve another issue I was having in that the first record in the bound data set is displayed ABOVE the headers

Scrolling down moved the headers to the top of the upper bounds and they stay there, scrolling back up shows the first record above the headers.

Also once the filters window is open, clicking on the Add Condition button crashes the application with a TargetInvocationException.

Stack:

   at Infragistics.Windows.DataPresenter.CellCollection.GetItem(Int32 index)
   at Infragistics.Windows.DataPresenter.CellCollection.get_Item(Int32 index)
   at Infragistics.Windows.DataPresenter.CellCollection.get_Item(String name)
   at Infragistics.Windows.DataPresenter.CustomFilterSelectionControl.ExecuteAddConditionCommand(Object source, Object originalSource, Object parameter)
   at Infragistics.Windows.DataPresenter.CustomFilterSelectionControl.ExecuteCommandImpl(RoutedCommand command, Object parameter, Object source, Object originalSource)
   at Infragistics.Windows.DataPresenter.CustomFilterSelectionControl.ExecuteCommandHandler(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 MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()

Any ideas would be really helpful.  I'm wondering if the two problems are related in that the first record in the bound collection has values but the first record displayed in the grid (above the headers) is completely blank ... very odd.

 

Parents
  • 425
    posted

    Turns out this is a problem with the style I created (see the link to the previous post above).  Not sure how to tackle this one.

Reply Children
No Data