This is a migrated thread and some comments may be shown as answers.

Let right click do the same action as left click

0 Answers 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kiriya
Top achievements
Rank 1
Kiriya asked on 18 Apr 2012, 02:00 AM
Hi,

I‘m facing a problem with right click.
I added a right-click menu into GridView.
I want to let the performance of right-click close to Excel facilitating my users to use my application. 
But it don't work.
The performance here that I want to show :

(In case of GridView.SelectionUnit is Cell)
1.When I RIGHT click on one cell and there was no cell selected in GridView,
   then select the cell I clicked(THIS ACTION DON'T OCCUR NOW, and I want to do),
   and  show right-click menu(this action is OK)
   
2.When I selected some cells, and right click on one of them,
   then display right-click menu(this action is OK).

3.When I selected some cells, and right click on one of other cell,
   then unselect the originally selected cells(THIS ACTION DON'T WORK NOW, and I want to do) ,
   and select the cell on which right clicked(THIS ACTION DON'T WORK NOW, and I want to do) , 
   and show right-click menu(this action is OK) .

(In case of  GridView.SelectionUnit is Row) 
1.When I right click on one row and there is no row been selected,
   then selected the row I clicked,and show right-click menu.(This is OK).

2.When I selected some rows,and right click on one of other row,
   then unselect the the originally selected rows,
   and select the row I clicked,
   and show the right-click menu.(This is OK).

3.When I selected some rows,and right click on one of them,
   then keep the rows I selected(THIS ACTION DON'T WORK NOW),
   and show right-click menu.(This is OK) .
 
Is there any solution for above demands?


Best Regards
  
Tags
GridView
Asked by
Kiriya
Top achievements
Rank 1
Share this question
or