question re: using context menu with datagrid

M

Milsnips

hi there,

i've added the context menu to my datagrid and it appears fine when i hold
down the stylus on the grid, but what i'm trying to do is the following:

say, 10 rows in my grid, currently the 2nd is selected, now i use the stylus
and hold it down on the 6th row for the menu to appear, but it doesnt change
the focus on the 6th row, instead my command still fires off for the 2nd.

how can i correct this problem, so wherever the context menu appears, that
row gets selected?

thanks,
Paul
 
F

Fabien

Hi,

Try to catch an event (C# event or Window Message) when you hold down
the stylus then select manually the row you right click.

Hope this give you an indication.

BR

Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/
 
M

Milsnips

Hi Fabien,

yeh i've tried pretty much all the events, and it doesnt seem to work as i
want, i guess i'll need to catch the windows message.

thanks,
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top