Hi,
We're getting the following exception when adding adding and saving a row to a grouped by xamgrid. We're using netadvantage ultimate 2011. Is this a known issue? Any help on this will be appreciated.
unable to cast object of type 'infragistics.controls.grids.row' to type 'infragistics.controls.grids.primitives.groupbyrow'
Thanks.
Perfect. Thanks again for the quick response.
Hello donagarcia,
Thank you for your replies. I have manage to reproduce the issue, when using an CollectionViewSource and re-setting its Source. InvalidCastException is thrown when using the 11.1.20111.2115 build and in the latest service release an exception is not thrown, but the groups are not appearing. The issue has an ID of 99379 and is fixed internally. The fix will be available for your to download with the next service release which is scheduled for the middle of this moth (http://es.infragistics.com/support/service-releases.aspx#ServiceReleases).
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
I confirmed the issue doesn't exist in the Silverlight XamGrid 10.3. So, the issue was introduced in the Silverlight XamGrid 11.1 control.
I forgot to mention that this issue is also broken under the Silverlight LOB 11.2.20112.1010 XamGrid as well.
OK, I am getting the same error. I am running Windows 7 32 bit, Silverlight LOB v11.1, Visual Studio 2010, Silverlight 4 framework.
My issue appears when I set the XamGrid.ItemsSource. I have included the stack trace. this is definitely something in the Silverligh 11.1 LOB code since my code worked fine under v.9.2 and it didn't break until I upgraded my project to v.11.1.
System.InvalidCastException was caught
Message=Unable to cast object of type 'Infragistics.Controls.Grids.Row' to type 'Infragistics.Controls.Grids.Primitives.GroupByRow'.
StackTrace:
at Infragistics.Controls.Grids.XamGrid.WalkDownGroupByRowsForDataItem(RowCollection rows, Object data)
at Infragistics.Controls.Grids.XamGrid.ActiveItemChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Infragistics.Controls.Grids.XamGrid.set_ActiveItem(Object value)
at Infragistics.Controls.Grids.XamGrid.ApplyItemSource(IEnumerable itemSource)
at Infragistics.Controls.Grids.XamGrid.ItemsSourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
at Infragistics.Controls.Grids.XamGrid.set_ItemsSource(IEnumerable value)
at DataMergeSL.MyDashboard.SetupGrid(XamGrid MyGrid, ReportTypes ReportType, Object MyList, Boolean blnMultiplesExist)
InnerException: