Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2007

Tip: Looking for answers? Try searching our database.

question re: using context menu with datagrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Milsnips - 23 Mar 2007 08:31 GMT
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
Fabien - 23 Mar 2007 09:28 GMT
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 there,
>
[quoted text clipped - 10 lines]
> thanks,
> Paul
Milsnips - 23 Mar 2007 10:05 GMT
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

> Hi,
>
[quoted text clipped - 29 lines]
>> thanks,
>> Paul

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.