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
280
How to get Cell Selected in Double click event on mouse?
posted

Hi Can someone help me how to know on what cell user click with his mouse?

private void GridMouseDoubleClick(object sender, MouseButtonEventArgs e)

        {

DependencyObject source = e.OriginalSource as DependencyObject;

 

            if (source == null)

            {

                return;

            }

 

            if (source is FrameworkElement)

            {

                DataRecordPresenter drp = Infragistics.Windows.Utilities.GetAncestorFromType(source, typeof(DataRecordPresenter), true) as DataRecordPresenter;

                if (drp == null)

                {

                    return;

                }

                if (drp.Record != null)

                {

                    drp.Record.IsSelected = true;

 

                    drp.IsActive = true;

 

                    DataRecord r = drp.DataRecord;

 

                    if (r != null)

                    {

 

                    }

                }

            }

}

 

Regards,

Saykor

Parents
No Data
Reply
  • 138253
    Offline posted

    Hi,

     

    I am just checking the progress of this thread. Did you manage to solve this issue or you need further assistance?

     

    Looking forward for your reply.

Children