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