473,794 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

double click on datagrid?

Hi

I have a datagrid that is popolated by a search result. I would then like to
double click on a row to open the record in a new form.

The double click doesn't seem to "fire"? I am relively new to VB.NET (coming
from VB6). How does one capture the double click event on the datagrid?

Any tips will be appreciated.

Francois
Nov 21 '05 #1
5 5491
Francois,

This is the page "Everything I wanted to know about the datagrid and did not
know before" When something is not here, you have mostly a lot of work to do
it the way you want.

This is a direct link to your problem on that page.

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q869q

I hope this helps?

Cor

"Francois Searle" <na**@company.c om>
Hi

I have a datagrid that is popolated by a search result. I would then like
to
double click on a row to open the record in a new form.

The double click doesn't seem to "fire"? I am relively new to VB.NET
(coming
from VB6). How does one capture the double click event on the datagrid?

Any tips will be appreciated.

Francois

Nov 21 '05 #2
Hi

Thanks. Took some coding, but worked out.

Thanks.
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:ue******** ******@TK2MSFTN GP11.phx.gbl...
Francois,

This is the page "Everything I wanted to know about the datagrid and did not know before" When something is not here, you have mostly a lot of work to do it the way you want.

This is a direct link to your problem on that page.

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q869q

I hope this helps?

Cor

"Francois Searle" <na**@company.c om>
Hi

I have a datagrid that is popolated by a search result. I would then like to
double click on a row to open the record in a new form.

The double click doesn't seem to "fire"? I am relively new to VB.NET
(coming
from VB6). How does one capture the double click event on the datagrid?

Any tips will be appreciated.

Francois


Nov 21 '05 #3
Ok. But wait! That only works with grids that are not read-only. Any ideas?
"Francois Searle" <na**@company.c om> wrote in message
news:cn******** **@ctb-nnrp2.saix.net. ..
Hi

Thanks. Took some coding, but worked out.

Thanks.
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:ue******** ******@TK2MSFTN GP11.phx.gbl...
Francois,

This is the page "Everything I wanted to know about the datagrid and did not
know before" When something is not here, you have mostly a lot of work to do
it the way you want.

This is a direct link to your problem on that page.

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q869q

I hope this helps?

Cor

"Francois Searle" <na**@company.c om>
Hi

I have a datagrid that is popolated by a search result. I would then

like to
double click on a row to open the record in a new form.

The double click doesn't seem to "fire"? I am relively new to VB.NET
(coming
from VB6). How does one capture the double click event on the datagrid?
Any tips will be appreciated.

Francois



Nov 21 '05 #4
Francois Searle wrote:
Ok. But wait! That only works with grids that are not read-only. Any ideas?
"Francois Searle" <na**@company.c om> wrote in message
news:cn******** **@ctb-nnrp2.saix.net. ..
Hi

Thanks. Took some coding, but worked out.

Thanks.
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:ue****** ********@TK2MSF TNGP11.phx.gbl. ..
Francois,

This is the page "Everything I wanted to know about the datagrid and did


not
know before" When something is not here, you have mostly a lot of work
to
do
it the way you want.

This is a direct link to your problem on that page.

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q869q

I hope this helps?

Cor

"Francois Searle" <na**@company.c om>

Hi

I have a datagrid that is popolated by a search result. I would then


like
to
double click on a row to open the record in a new form.

The double click doesn't seem to "fire"? I am relively new to VB.NET
(coming
from VB6). How does one capture the double click event on the


datagrid?
Any tips will be appreciated.

Francois



Take a look at the code of 5.41 on that page. I've used that to
a) get rid of the edit thing (which normally shows up even in readonly mode)
b) color the whole cell/row when selecting a cell
c) catch the doubleclick.

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #5
this one really worked, thanks...
"C-Services Holland b.v." <cs*@REMOVEcsh4 u.nl> wrote in message
news:qN******** ************@ze elandnet.nl...
Francois Searle wrote:
Ok. But wait! That only works with grids that are not read-only. Any ideas?

"Francois Searle" <na**@company.c om> wrote in message
news:cn******** **@ctb-nnrp2.saix.net. ..
Hi

Thanks. Took some coding, but worked out.

Thanks.
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:ue****** ********@TK2MSF TNGP11.phx.gbl. ..

Francois,

This is the page "Everything I wanted to know about the datagrid and did
not

know before" When something is not here, you have mostly a lot of work
to
do

it the way you want.

This is a direct link to your problem on that page.

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q869q

I hope this helps?

Cor

"Francois Searle" <na**@company.c om>

>Hi
>
>I have a datagrid that is popolated by a search result. I would then

like

>to
>double click on a row to open the record in a new form.
>
>The double click doesn't seem to "fire"? I am relively new to VB.NET
>(coming
>from VB6). How does one capture the double click event on the


datagrid?
>Any tips will be appreciated.
>
>Francois
>
>



Take a look at the code of 5.41 on that page. I've used that to
a) get rid of the edit thing (which normally shows up even in readonly

mode) b) color the whole cell/row when selecting a cell
c) catch the doubleclick.

--
Rinze van Huizen
C-Services Holland b.v.

Nov 21 '05 #6

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

Similar topics

3
2893
by: Maulin Vasavada | last post by:
Hi, I have DataTable and I want to actually put a LinkLabel in one the columns where I can click an do something BUT it seems I can't put LinkLabel in the table cell of DataTable. So as an alternative I thought if I can detect double click events on a cell I can get the text in there and do something but I am not able to do so. Please let me know if I have to provide more information to help solve this problem.
1
2206
by: mdb | last post by:
I need to detect when the user double-clicks on a cell in a DataGrid in WindowsForms, but the doubleClick event doesn't seem to respond when its in the data area. (It does respond if I double click the row header.) Any suggestions? -mdb
1
4971
by: Lalit Bhatia | last post by:
Hi when focus is on a cell in datagrid. double click event does not occur. when I double click on rowheader, columnheader then this event fires. I am using DataGridTableStyle in the grid. -- Regards, Lalit Bhatia
2
3311
by: Alpha | last post by:
I have a window application. In one of the form, a datagrid has a dataview as its datasource. Initial filtering result would give the datavew 3 items. When I double click on the datagrid to edit the selected lie item at which case I would pop up a separate dialog box to do so, in the debugging code, the dataview.count would return 0. I get a error message because I tried to get values out of a dataview that holds 0 items. Does anyone...
1
1895
by: kgs | last post by:
I have datagrid with in a usercontrol. I have doubleclick event tied to each row to post back with the id of the control. Though i get a postback on double click of the datagrid But double click event handler is not triggered. here is the code snipped for item bound public void OnItemBound(Object Sender, DataGridItemEventArgs e)
1
1443
by: Manny Chohan | last post by:
hi Guys, i want to implement the double click functionality in datagrid. I am using c#. can some one recomend a good article whihc shows you how to do it. Thanks Manny
5
4748
by: Nick | last post by:
Hey guys, I have 2 events on a windows forms datagrid, the mouse move as well as the double click events. What's happening is that when I double click on a row in the grid, the mouse move event gets triggered and the double click is not identified at all. Is there any way I can invoke the double click when the mouse move also exists?
1
2244
by: Brett Romero | last post by:
I'm allowing double clicks on a DataGrid by using a counter and timing. However, the user must click two different cells for the double click to work. The reason is once they click into a cell, it can be edited. At that point, a double click does nothing. Is there a way to disable editing on a DataGrid so the double click will work off of one cell rather than two? I'm also doing DataGridTextBoxColumnvar.TextBox.Enabled = false;
1
2417
by: trint | last post by:
Hi, I have three datagrids in a WinForm. I want dataGridView1 to retrieve data and make dataGridView2 visible and the same with dataGridView3. Any help is appreciated. Thanks, Trint
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10433
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9035
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.