I have a DataSet with 3 DataTables and two relations.
Like this:
Parent
Child
ChildValues
There is no problem, when i adding Parent.DefaultView as ItemsSource if all Tables are empty.
As soon i have one or more row in the DataSet and the grid property AddNewRowSettings.AllowAddNewRow is set to: Bottom, i getting this error:
Source:
InfragisticsWPF4.DataManager.v12.1
Message:
"DataManager hat versucht, eine Instanz des Typs 'System.Data.DataRowView' ohne leere Parameterliste zu erstellen."
Stacktrace:
at Infragistics.DataManagerBase.GenerateNewObject() at Infragistics.Controls.Grids.RowsManager.GenerateNewObject(RowType rowType) at Infragistics.Controls.Grids.RowsManager.ResetAddNewRows(Boolean generateNewData) at Infragistics.Controls.Grids.XamGridRowsManager.ResetAddNewRows(Boolean generateNewData) at Infragistics.Controls.Grids.RowsManager.InitializeData() at Infragistics.Controls.Grids.RowsManager.SetupDataManager() at Infragistics.Controls.Grids.RowsManager.EnsureDataManager() at Infragistics.Controls.Grids.RowsManager.OnItemsSourceChanged(Boolean invalidateSelectionAndActivation) at Infragistics.Controls.Grids.RowsManager.set_ItemsSource(IEnumerable value) at Infragistics.Controls.Grids.XamGrid.ApplyItemSource(IEnumerable itemSource) at Infragistics.Controls.Grids.XamGrid.ItemsSourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at Infragistics.Controls.Grids.XamGrid.set_ItemsSource(IEnumerable value) at IBV.Modules.ExtendedSearch.ExtendedSearchControl.LoadControl() in C:\DevNet\ExternalAssemblies\ExtendedSearch\ExtendedSearchControl.xaml.cs:line 104
Inner Exception Source:
mscorlib
Inner Exception Message:
Constructor on type 'System.Data.DataRowView' not found.
When the DataSet is empty or the grid does not allow AddNewRow there is no excpetion thrown.
Whats wrong here?
Hello,
I am just checking, if you need any further assistance on this matter.
Would you please attach an isolated sample application which follow your scenario in order to provide you with more accurate assistance ?
Looking forward to hearing from you.
Hi,
This event is fired either when Filtering is activated or when a new Row is added.
But I dont want both the functionality and still want the Datasource be updated dynamically.
Do give me any workaround for updating the datasource.
I am using this approach without setting filtering in the attach sample application(XamGrid.zip). This is not a development issue. For more information you can look through the following link from our online documentation :
http://help.infragistics.com/NetAdvantage/Silverlight/2011/2/CLR4.0/?page=xamGrid_RequireEmptyConstructor_Exception.html
If you have any other questions, feel free to ask.
Follow this post: http://forums.infragistics.com/forums/p/66020/353605.aspx
This issue has already been reportd in Feb'12.
This was supposed to be fixed in 12.1v.
This workaround only works when FilteringSettings.AllowFiltering = FilterUIType.FilterRowTop is set.
But I dont want to have filtering on my grid.
Give a fix ASAP.