question re: using context menu with datagrid

  • Thread starter Thread starter Milsnips
  • Start date Start date
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
 
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/
 
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
 
Back
Top