Click here to Skip to main content
15,879,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In my wpf application datagrid sorting works perfectly when my scroll is up
but when i down my scroll my sorting not works till it comes the top .
Posted
Updated 7-Nov-13 22:46pm
v3
Comments
Please add some code and if possible post the link to an screenshot.

1 solution

I was facing this issue because of drag and drop datagrid items
I added following code in PreviewMouseLeftButtonDown and Drop events of datagrid

DataGrid grd = e.Source as DataGrid;
if (grd == null)
return;

//make sure the row under the grid is being selected
Point position = e.GetPosition(grd);
var row = UIHelpers.TryFindFromPoint(grd, position);
if (row == null) return;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900