We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataControl errors on sort

Thread ID:





96307 Sep 3,2010 06:01 PM UTC Sep 7,2010 01:11 PM UTC WPF 1
Tags: GridControl
Bill Blair
Asked On September 3, 2010 06:01 PM UTC

I have bound the GridDataControl to an ObjectDataProvider like so:

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"
xmlns:MarketFilter="clr-namespace:Chimera.MarketFilter" Loaded="WindowLoaded" >

ItemsSource="{Binding Source={StaticResource stocks}}"
NotifyPropertyChanges="True" >

the MarketData class is attached. It inherits from ObservableCollection and contains a collection of the Stock class which implements INotifyPropertyChanged. This collection is updated by an event from DataFeed very quickly.

When I click on a column header and it sorts by that column it immediately throws:
A first chance exception of type 'System.InvalidOperationException' occurred in System.dll

Then in a bit:
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll

The rows start to disappear and then the grid is empty.

If I turn off the updating then the problem goes away and I can sort fine off of the starting data.

The error doesn't seem to be coming from my update code, I put a break point in the catch and it never hit.

Seems like a threading issue where access to the ObservableCollection isn't locked.

Any ideas what is causing this?


Jeraldes J [Syncfusion]
Replied On September 7, 2010 01:11 PM UTC

Hi Bill,

Thank you for using Syncfusion products.

For your information, we would request you to follow the forum ID:#96301 for future clarification regarding this issue.

Let us know if you need any other details.

Jeraldes J


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon