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
close icon

Double click on a row of the SfDataGrid

I am currently having an SfDataGrid and a DataTable as an items source of the grid. What is the best way to implement the SfDataGrid double click only for grid rows event (not the headers, not the stack headers, etc.) and work correctly even if I re-order the column?

Thank you

1 Reply

JG Jai Ganesh S Syncfusion Team April 8, 2015 05:55 AM UTC

Hi Patak,

 

Thank you for using Syncfusion products.

 

We have analyzed your query. You can achieve your requirement in SfDataGrid as double click event only works for grid rows by find the VirualizingCellsControl inside the double click event and then perform the action if the VirtualizingCellsControl is not null.

 

We already have a kb for this and please find the Kb link as below,

 

KB Link:

 

http://www.syncfusion.com/kb/2449/how-to-get-the-record-when-double-clicked-on-the-row

 

We have also prepared the sample based on this and please find the sample under the following location,

 

Sample: http://www.syncfusion.com/downloads/support/directtrac/135266/DatatableSample-1894104348.zip

 

Please let us know if you need further assistance.

 

Thank you,

Jai Ganesh S


Loader.
Live Chat Icon For mobile
Up arrow icon