Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Infragistics.Windows.Utilities.GetAncestorFromType gives wrong results if filtered
posted

Hello,

We implemented Drag and Drop with a XamDataGrid, and it is working well... as long you do not filter. If there is a filter active, it gets the wrong datarecordpresenter.

BR

Ralph

private void grid_ImportLabel_Drop(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent("LabelAliasUIInfo"))
            {
                HitTestResult result = VisualTreeHelper.HitTest(this.grid_ImportLabel, e.GetPosition(this.grid_ImportLabel));
                if (result.VisualHit != null)
                {
                    DataRecordPresenter drp = Infragistics.Windows.Utilities.GetAncestorFromType(result.VisualHit, typeof(DataRecordPresenter), true) as DataRecordPresenter;
                    if (drp != null)
                    {

Parents Reply Children