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.
HI,
I was unable to reproduce your issue.
I created sample application for your review. It uses build 11.1.2115.
Please feel free to modify this sample so that it replicates your issue. Sincerely, Matt Developer Support Engineer
I am just following up on this forum post.
Please let me know if you need further assistance regarding this case.
Sincerely, Matt Developer Support Engineer
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:
I forgot to mention that this issue is also broken under the Silverlight LOB 11.2.20112.1010 XamGrid as well.
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.