Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragging a single item from a grouped datagrid will often return CollectionViewGroupInternal rather than the item #33

Closed
punker76 opened this issue Feb 18, 2013 · 2 comments

Comments

@punker76
Copy link
Owner

Original author: JezzaTi...@gmail.com (March 30, 2011 22:46:28)

>What steps will reproduce the problem?

  1. I modified the DefaultsExample by adding a 'DataGrid with Groups' tab bound to the same GroupedCollectionViewSource as in the 'Listbox with groups' tab

>What is the expected output? What do you see instead?
Sometimes it would work as expected as it does in 'Listbox with Groups' but most of the time the dropInfo.Data was a CollectionViewGroupInternal instead of a GroupedItem which caused an exception. Dragging multiple items always worked after I modified Data.Drop.

I suspect the problem maybe the DataGrid itself.

>What version of the product are you using?
Latest from subversion

Original issue: http://code.google.com/p/gong-wpf-dragdrop/issues/detail?id=33

@punker76
Copy link
Owner Author

From JezzaTi...@gmail.com on July 25, 2011 02:02:16
I found a fix.
I updated to .net 4.0 and changed ItemsControlExtensions.GetItemContainerType by adding
if (itemsControl is DataGrid)
{
return typeof (DataGridRow);
}
to the start of the method.

punker76 added a commit that referenced this issue Aug 10, 2013
- Dragging a single item from a grouped datagrid will often return
CollectionViewGroupInternal rather than the item
- Drag&Drop to empty DataGrid doesn't work
@punker76
Copy link
Owner Author

will be fixed with 0.1.3.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant