Hi,
we have added functionality that when double click on header sorting should be false and when single click on header sorting should be true. But for single click I have added PreviewMouseLeftButtonDown event. But my problem is in double click , its also fires event PreviewMouseLeftButtonDown event, and true the sorting event.So Is there any single mouse click event in XAM grid.
Let we suggest us.
Thanks
Hello Pri,
I am just checking if you require any further assistance on the matter.
Hi Pri,
In my previous post I explained you why this is not a good idea and why on double click the sorting will be executed. Please do the desired action on right button click (MouseLeftButtonDown).
You can use the ‘MouseLeftButtonDown’ event in order to detect single click.
Let me know, if you need any further assistance on this matter.
Thanks for your suggestion, But our requirement is that On Double Click,sorting should be disable and on single click sorting should be work.
Apart from that is there any single click event in XAM GRID?
Thank you for your post. I have been looking into your question and the XamGrid is designed to be sorted on single column header click. The single click event is fired before every double click event and this makes the XamGrid sort. I believe that it would be better to sort the XamGrid on double click and do the other action on single click.