This is a migrated thread and some comments may be shown as answers.

Drag n Drop between ListBox and RadGridView

1 Answer 107 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pradnya
Top achievements
Rank 1
Pradnya asked on 22 May 2012, 04:53 PM
Hi


I have implemented reordering functionality in RadGridView its works fine. But when I am doing Drag n Drop functionality with ListBox and same grid view at that time its throwing following exception

Stack Trace:
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value)
   at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection, DependencyObject value)
   at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)
   at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
   at System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
   at System.Windows.Controls.ItemsControl.AddContainers()
   at System.Windows.Controls.ItemsControl.RecreateVisualChildren(IntPtr nativeItemsControl)

Message
Element is already the child of another element.

Please help me how to resolve this issue?

Thanks-

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 23 May 2012, 07:10 AM
Hi,

 Will you post more info about your implementation? 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Pradnya
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or