473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Datagrid - Doubleclick event

Trying to learn vb.net & am frustrated.

I've got data in a grid. Want user to be able to double-
click on a row and see a new form with additional detail
for that row.

Works fine, so long as user doubleclicks on the grid's row
selector along the left border.

How do I trap this if the user doubleclicks on a cell in
the row instead? I've tried to use the mouse-up & mouse-
down events, checking to see how many clicks are contained
in the MouseEventArgs, but the click count is always 1

Thanks
Duke
Nov 20 '05 #1
1 3678
Hi Duke,

There's a dedicated DoubleClick event you could try to handle instead.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Duke" <an*******@discussions.microsoft.com> wrote in message
news:0c****************************@phx.gbl...
Trying to learn vb.net & am frustrated.

I've got data in a grid. Want user to be able to double-
click on a row and see a new form with additional detail
for that row.

Works fine, so long as user doubleclicks on the grid's row
selector along the left border.

How do I trap this if the user doubleclicks on a cell in
the row instead? I've tried to use the mouse-up & mouse-
down events, checking to see how many clicks are contained
in the MouseEventArgs, but the click count is always 1

Thanks
Duke


Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Koo Min | last post by:
Hello, I've added drag-and-drop feature to a windows forms label control which is contained in a panel. And I added a doubleclick event handler to the drag-and-drop-abled label, but doubleclick...
4
by: John Smith | last post by:
Hey folks, Is there a way to make the data grid always select a row only and not an individual cell? Like...When I click on the row header it highlights the whole row in blue. But when I then...
5
by: David Lozzi | last post by:
Hey All, I have a listbox that I would like to fire an event on doubleclick. the onDoubleClick property of the listbox isnt available be default, and I know it will work with Javascript, but how...
2
by: Rolf Falnes | last post by:
Hi. Does anyone know how to trigger the doubleclick mouse event in a datagrid cell (DatagridTextbox )? Regards, Rolf Falnes Datapartner AS
4
by: Tor Inge Rislaa | last post by:
DoubleClick in DataGrid Hi I have a Datagrid bound to a dataset that I want to write a DoubleClick procedure on. My problem is that the DoubleClick event is raised only when DoubleClicking the...
2
by: Li Pang | last post by:
Hi, I used a datagrid control to populate the data, and used DataGrid.Click or DataGrid.DoubleClick events to handle a function. However, the event is only fired when clicking on the NON-DATA...
3
by: rodchar | last post by:
hey all, i have a win form that has a datagrid on it and i was wondering if i can use a double-click event to pull up the next form to show details? thanks, rodchar
10
by: JohnR | last post by:
I have a datatable as the datasource to a datagrid. The datagrid has a datagridtablestyle defined. I use the datagridtablestyle to change the order of the columns (so they can be different than...
3
by: C Glenn | last post by:
I would like one DoubleClick event handler to handle all double clicks throughout a DataGrid. I've assigned a DoubleClick event handler to the DataGrid and it works nifty-spiffy so long as I click...
0
by: =?Utf-8?B?Q2hyaXNK?= | last post by:
I am using a datagrid as a selection list on a form. There is an OK button which closes the form and returns the current selection. I would like to get a doubleclick to perform the same action...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.