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.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl Problem : URGENT

Thread ID:

Created:

Updated:

Platform:

Replies:

76891 Sep 29,2008 05:49 AM Sep 29,2008 09:30 AM Windows Forms 2
loading
Tags: GridControl
Simon Kakon
Asked On September 29, 2008 05:49 AM

Hi,
I'm using a GridGroupingControl that is bind with a Custom BindingSOurce (binded to a bindinglist) inherited from a BindingSource. I'm also using a custom notification of Changes in the list by using the SimulateListChanged method. I have a timer that send 200/300 notifications ItemChanged to the grid each second.

Everything works fine.

The problem is when I group the grid by column and I change the sort between two columns of different type, the grid throw an exception :

System.ArgumentException: Object must be of type Int32.
at System.Int32.CompareTo(Object value)
at Syncfusion.Grouping.Internals.SortColumnComparer._Compare(Object x, Object y)
at Syncfusion.Grouping.Internals.SortColumnComparer._Compare(SortColumnDescriptor columnDescriptor, Object x, Object y)
at Syncfusion.Grouping.Table.bindingList_ListChanged(Object sender, ListChangedEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableBase.bindingList_ListChanged(Object sender, ListChangedEventArgs e)
at Syncfusion.Grouping.Table.SimulateListChanged(ListChangedEventArgs e)
at Cac.Atr.Services.UI.RTGridGrouping.RTGridBindingSource.NotifyPropertyChanged(Int32 index, String propertyName) in C:\Projets\Sources\Framework\Cac.Atr.Services.UI.RTGridGrouping\Cac.Atr.Services.UI.RTGridGrouping\RTGridBindingSource.cs:line 61
at Cac.Atr.Services.UI.RTGridGroupingControlTest2.TestForm.RefreshOneValue() in C:\Projets\Sources\Framework\Cac.Atr.Services.UI.RTGridGrouping\Cac.Atr.Services.UI.RTGridGroupingControlTest2\TestForm.cs:line 159
at Cac.Atr.Services.UI.RTGridGroupingControlTest2.TestForm.refreshValueTimer_Tick(Object sender, EventArgs e) in C:\Projets\Sources\Framework\Cac.Atr.Services.UI.RTGridGrouping\Cac.Atr.Services.UI.RTGridGroupingControlTest2\TestForm.cs:line 172
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Is there a way to correct this, or what can I do to prevent this problem.

Thanks
Simon.



Simon Kakon
Replied On September 29, 2008 05:52 AM

Hi,
Sorry I forget to precise that I m using UseOldListChangedHandler = true.

Thanks

>Hi,
I'm using a GridGroupingControl that is bind with a Custom BindingSOurce (binded to a bindinglist) inherited from a BindingSource. I'm also using a custom notification of Changes in the list by using the SimulateListChanged method. I have a timer that send 200/300 notifications ItemChanged to the grid each second.

Everything works fine.

The problem is when I group the grid by column and I change the sort between two columns of different type, the grid throw an exception :

System.ArgumentException: Object must be of type Int32.
at System.Int32.CompareTo(Object value)
at Syncfusion.Grouping.Internals.SortColumnComparer._Compare(Object x, Object y)
at Syncfusion.Grouping.Internals.SortColumnComparer._Compare(SortColumnDescriptor columnDescriptor, Object x, Object y)
at Syncfusion.Grouping.Table.bindingList_ListChanged(Object sender, ListChangedEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableBase.bindingList_ListChanged(Object sender, ListChangedEventArgs e)
at Syncfusion.Grouping.Table.SimulateListChanged(ListChangedEventArgs e)
at Cac.Atr.Services.UI.RTGridGrouping.RTGridBindingSource.NotifyPropertyChanged(Int32 index, String propertyName) in C:\Projets\Sources\Framework\Cac.Atr.Services.UI.RTGridGrouping\Cac.Atr.Services.UI.RTGridGrouping\RTGridBindingSource.cs:line 61
at Cac.Atr.Services.UI.RTGridGroupingControlTest2.TestForm.RefreshOneValue() in C:\Projets\Sources\Framework\Cac.Atr.Services.UI.RTGridGrouping\Cac.Atr.Services.UI.RTGridGroupingControlTest2\TestForm.cs:line 159
at Cac.Atr.Services.UI.RTGridGroupingControlTest2.TestForm.refreshValueTimer_Tick(Object sender, EventArgs e) in C:\Projets\Sources\Framework\Cac.Atr.Services.UI.RTGridGrouping\Cac.Atr.Services.UI.RTGridGroupingControlTest2\TestForm.cs:line 172
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Is there a way to correct this, or what can I do to prevent this problem.

Thanks
Simon.





Sri Rajan [Syncfusion]
Replied On September 29, 2008 09:30 AM

Hi Simon,

Thank you for your interest in Syncfusion products.

Please create a DirectTrac Incidents for urgent supoprt issues. Direct Trac would be the best way to receive timely support, one-one contact with an expert engineer, alerts when incident is updated and escalation choices.

please let me know if you have any further questions.

Best Regards,
Srirajan.



CONFIRMATION

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.

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.

;