473,394 Members | 1,709 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,394 software developers and data experts.

how to detect double click on the tabel cell of DataTable

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.

Regards,
Maulin

Nov 16 '05 #1
3 2874
You may be mixing up the DataTable with a DataGrid. The DataTable is used to
represent data that may have come from a database (not strictly nenessary).
The grid displays the DataTable and reacts to events such as double click.

You need to create a DataGrid column that is a hyperlink. You could do this
using the DataGrid Property Builder and handling the event when a user
select a cell.

--

Chris Rolon

"Maulin Vasavada" <ma*************@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
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.

Regards,
Maulin

Nov 16 '05 #2
Hi Chris,

Thanks for your response. Yes you are right. I am using DataTable and
DataGrid but I just overlooked that in my post. Now I am starting my
search on how to create a DataGrid Column that is hyperlink.

Regards,
Maulin

Nov 16 '05 #3
also i am not having data from any db or anything. What i have is, i
have some data of just columns and one column should contain
hyperlinks to a local exe file. I am developing a stand alone
appplication. I didn't see DataGrid Properties thing. My dataset is
reallly simple. Its like you can say, property name and value thing
where I want to display hyperlink in property value column.

Regards
Maulin

Nov 16 '05 #4

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

Similar topics

0
by: selowan | last post by:
Hi, In VB6 Pro SP5, I have a form that contains an MSFlexGrid and a few other textboxes and comboboxes. I am using the technique from MSDN article Q241355, which describes how to tab and edit in...
1
by: Frederik | last post by:
Hi all, I extended the DataGridTextBoxColmun to be able to color an individual cell in my datagrid. It works fine, but when I click on a cell, all the colored cells in that row get the default...
1
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. ...
2
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...
4
by: simon | last post by:
which data control allows me to use a cell doubleClick event? I have time cells (something like Outlook calendar) and when user double click on one cell I would like to redirect to other window...
9
by: Coleen | last post by:
Hi All :-) I found the way to get my column sum (Thanks Cor I did it a little different, but the result is what I wanted) I used: dt_stat_report_3b.Columns.Add(New DataColumn("Sum",...
2
by: eBob.com | last post by:
I've got the basics of an XML ini file working. I.E. I can stash away and retrieve user preferences. (Code below.) But how do I handle a new preference? Say I have A and B. And then I invent...
5
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...
1
by: teo | last post by:
hallo In a DataGridView how/where may I detect the click on the header of a column versus the click on a cell "inside" the grid ? I tried by using the
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
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...

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.