Hi this is Md. Masudur Rahman, Software Engineer working for Kaz Software Ltd. .. I have downloaded latest version of wpf grid. but i am uable to work
out grid show search resut of data ... when we creates datarows for first time.. it works fime... but in second time... i had to clear the grid and put all the datarows again... thats why i called
"grid.items.clear()" and it shows me an exception...
the exception details is given bellow...
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
System.NullReferenceException: Object reference not set to an instance of an object.
at Xceed.Wpf.DataGrid.DataGridControl.ClearContainerForItemOverride(DependencyObject element, Object item)
at Xceed.Wpf.DataGrid.DataGridControl.ClearItemContainer(DependencyObject container, Object item)
at Xceed.Wpf.DataGrid.CustomItemContainerGenerator.RemoveContainer(DependencyObject container, Object dataItem)
at Xceed.Wpf.DataGrid.CustomItemContainerGenerator.RemoveAllGeneratedItems(IList`1 removedContainers)
at Xceed.Wpf.DataGrid.CustomItemContainerGenerator.RemoveAllGeneratedItems()
at Xceed.Wpf.DataGrid.CustomItemContainerGenerator.HandleGlobalItemsReset(Boolean notify)
at Xceed.Wpf.DataGrid.CustomItemContainerGenerator.HandleGlobalItemsReset()
at Xceed.Wpf.DataGrid.CustomItemContainerGenerator.OnItemsChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Xceed.Wpf.DataGrid.CustomItemContainerGenerator.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at System.Windows.Controls.ItemCollection.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at MS.Internal.Controls.InnerItemCollectionView.RefreshOverride()
at System.Windows.Data.CollectionView.RefreshInternal()
at System.Windows.Data.CollectionView.RefreshOrDefer()
at MS.Internal.Controls.InnerItemCollectionView.Clear()
at System.Windows.Controls.ItemCollection.Clear()
at Orbitax.TME.WPF.UIContainer.CrossBorderTaxRate.PopulateGrid(CrossBorderTaxRate[] corprates) in C:\TME Source\Orbitax.TME.WPF.UIContainer\CrossBorderRate\CrossBorderTaxRate.xaml.cs:line 903
at Orbitax.TME.WPF.UIContainer.CrossBorderTaxRate.GetResult() in C:\TME Source\Orbitax.TME.WPF.UIContainer\CrossBorderRate\CrossBorderTaxRate.xaml.cs:line 649
i am stuck here and unable to proceed...
please help...
Regards
-------
Munna
http://munna.shatkotha.com/blog
http://munna.shatkotha.com
www.kaz.com.bd