Link to home
Start Free TrialLog in
Avatar of dotnetpro
dotnetpro

asked on

ApplicationCommands.Copy command is always disabled

Experts,

Any idea why would that happen ? i am creating a context menu and adding a header "Copy" and setting the command equal to ApplicationCommand.Copy and setting the target as well. Still it is always disabled. Wonder why..
Avatar of Siyamala
Siyamala
Flag of India image

Avatar of dotnetpro
dotnetpro

ASKER

I am going crazy..I have set the target as well. I actually have a Grid and have flowdocuments with paragraphs inside in each cell of the grid. Now the target is captured by

 item1.CommandTarget = gridControl.InputHitTest(e.GetPosition(gridControl));

I have other three headers in the context menu..One has a custom command and the other is copy and yet another one is Copy All. Everything else works but this one does not even if i select the text.
ASKER CERTIFIED SOLUTION
Avatar of dotnetpro
dotnetpro

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Because no other solution was posted as it is quite clear from the post..If a suitable answer had been posted I would have accepted.