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 / Windows Forms / WinForm Data Binding / October 2004

Tip: Looking for answers? Try searching our database.

How to get double click to work for cell in DataGrid?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stacey Levine - 12 Oct 2004 17:11 GMT
I want to have an action happen when the user double clicks on a cell.

Theonly way I have managed to get this to work is put the code in the grid's

double click event, click in the cell - then double click the row.  Or if I
click in the area of the cell that

does not highlight, then it works. Ie.. kind of in the cell text padding

area .. I have set everything to read only. How can I make it so that it

does not highlight the text in the cell?

stacey
"Jeffrey Tan[MSFT]" - 13 Oct 2004 07:00 GMT
Hi stacey,

Based on my understanding, you want to intercept the double click event in
datagrid's cell.

Yes, I can reproduce out this problem. The problem is that the first click
of a double click may be caught by the datagrid (and used to activate the
cell) while the second click goes to the TextBox for the columnstyle
object. This means the TextBox thinks this is a singleclick, and does not
fire its doubleclick event.

There is a sample shows how to workaround this issue, please refer to:
"5.46 How do I catch a doubleclick in my datagrid?"
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q869q
===============================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Stacey Levine - 13 Oct 2004 22:31 GMT
Thanks.. I am using the workaround.. just seems like another one of the .net
things making life more difficult.

Stacey
> Hi stacey,
>
[quoted text clipped - 20 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 14 Oct 2004 03:16 GMT
Hi Stacey,

Thanks very much for your feedback!

Yes, this really makes something more difficult, I have forwarded this
issue to our product team for you. Anyway, if you like, you may provide the
feedback for this issue yourself to:
"http://register.microsoft.com/mswish/suggestion.asp"

You suggestion will make our product more better, thank!

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


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.