We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DoubleClick on record

Hi.

Please, how can I catch double-click on the record?

Thanks.
Regards,
Juraj

2 Replies

SC Saravanan C Syncfusion Team May 21, 2014 12:47 PM UTC

Hi Juraj,

 

Thank you for contacting Syncfusion Support.

 

We have analyzed your query and you can achieve you requirement by using the MouseDoubleClick event. Please refer the following code snippet:

 

Code Snippet[C#]:

this.dataGrid.MouseDoubleClick += dataGrid_MouseDoubleClick;

 

void dataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)

{

    var rowControl = this.FindDescendant(e.OriginalSource, typeof(VirtualizingCellsControl)) as VirtualizingCellsControl;

    if(rowControl != null)

    {

        var recordData = rowControl.DataContext as OrderInfo;

        if(recordData != null)

        {

            MessageBox.Show(recordData.CustomerID);

        }

    }

               

}

 

We have created a sample based on your requirement. Please find the sample in the following location:

 

Sample: http://www.syncfusion.com/downloads/support/directtrac/124536/MouseDoubleClick-632792349.zip

 

Please let us know if  this solution helps you.

 

Thanks,

Saravanan C



HH Henry Harris June 26, 2014 09:41 PM UTC

Is this possible in xaml without code behind?

Loader.
Live Chat Icon For mobile
Up arrow icon