473,783 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cell double click

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 where he could
insert events for that time. Then he go back to that page and see event in
that cell.

How can I do that?

Thank you,
Simon
Nov 18 '05 #1
4 2449
The html would be something like

<table border="1" cellspacing="0" cellpadding="0" >
<tr>
<td
onDblClick="jav ascript:window. location='http://www.google.com' ">Double Click
this cell</td>
</tr>
</table>

Now to get that in a data bound control...
Perhaps with
..attributtes.a dd("onDblClick" ,"javascript:wi ndow.location='/yourInsertEvent P
age.aspx'")

On the relevant cell, during itemcreated or itemdatabound

"simon" <si*********@st ud-moderna.si> wrote in message
news:eM******** ******@TK2MSFTN GP12.phx.gbl...
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 where he could
insert events for that time. Then he go back to that page and see event in
that cell.

How can I do that?

Thank you,
Simon

Nov 18 '05 #2
Thank you for your answer. Attributes.Add has only dataGrid( before I had
dataRepeater).
Now I would like that function test is executed when user doubleClicks on
the cell.
I must know which cell is, that I can insert events for that cell (time in
fact, because each cell represent the hour of a day) so I use
e.Item.itemInde x. But this code doesn't work.

Do you know why?

Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
DataGrid1.ItemC reated

DataGrid1.Attri butes.Add("onDb lClick", test(e.Item.Ite mIndex))

End Sub

Function test(ByVal indeks)

label1.Text = indeks

End Function

Thank you,

Simon

"Joe Gass" <jo*@dontspamme .com> wrote in message
news:uA******** *****@tk2msftng p13.phx.gbl...
The html would be something like

<table border="1" cellspacing="0" cellpadding="0" >
<tr>
<td
onDblClick="jav ascript:window. location='http://www.google.com' ">Double Click this cell</td>
</tr>
</table>

Now to get that in a data bound control...
Perhaps with
..attributtes.a dd("onDblClick" ,"javascript:wi ndow.location='/yourInsertEvent P age.aspx'")

On the relevant cell, during itemcreated or itemdatabound

"simon" <si*********@st ud-moderna.si> wrote in message
news:eM******** ******@TK2MSFTN GP12.phx.gbl...
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 where he could insert events for that time. Then he go back to that page and see event in that cell.

How can I do that?

Thank you,
Simon


Nov 18 '05 #3
Hello,

I tried your example, it works ok, but I need to redirect to the page with
ID of clicked cell

If I try like this, I always get the ID of the last cell:

Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
DataGrid1.ItemC reated

If e.Item.ItemInde x <> -1 Then

Dim key As String = DataGrid1.DataK eys(e.Item.Item Index).ToString ()

DataGrid1.Attri butes.Add("onDb lClick", "test('" & key & "')")

End If

End Sub

and on page:

<SCRIPT language="javas cript">

function test(id)

{

window.location ='http://www.redirectPag e.aspx?id="+id

}

</SCRIPT>

Or with other words, How can I know which cell was double clicked?

Thank you,

Simon

"simon" <si*********@st ud-moderna.si> wrote in message
news:Ox******** ******@TK2MSFTN GP12.phx.gbl...
Thank you for your answer. Attributes.Add has only dataGrid( before I had
dataRepeater).
Now I would like that function test is executed when user doubleClicks on
the cell.
I must know which cell is, that I can insert events for that cell (time in
fact, because each cell represent the hour of a day) so I use
e.Item.itemInde x. But this code doesn't work.

Do you know why?

Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
DataGrid1.ItemC reated

DataGrid1.Attri butes.Add("onDb lClick", test(e.Item.Ite mIndex))

End Sub

Function test(ByVal indeks)

label1.Text = indeks

End Function

Thank you,

Simon

"Joe Gass" <jo*@dontspamme .com> wrote in message
news:uA******** *****@tk2msftng p13.phx.gbl...
The html would be something like

<table border="1" cellspacing="0" cellpadding="0" >
<tr>
<td
onDblClick="jav ascript:window. location='http://www.google.com' ">Double Click
this cell</td>
</tr>
</table>

Now to get that in a data bound control...
Perhaps with

..attributtes.a dd("onDblClick" ,"javascript:wi ndow.location='/yourInsertEvent P
age.aspx'")

On the relevant cell, during itemcreated or itemdatabound

"simon" <si*********@st ud-moderna.si> wrote in message
news:eM******** ******@TK2MSFTN GP12.phx.gbl...
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 where he could insert events for that time. Then he go back to that page and see
event in that cell.

How can I do that?

Thank you,
Simon



Nov 18 '05 #4
Hello,

I tried your example, it works ok, but I need to redirect to the page with
ID of clicked cell

If I try like this, I always get the ID of the last cell:

Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
DataGrid1.ItemC reated

If e.Item.ItemInde x <> -1 Then

Dim key As String = DataGrid1.DataK eys(e.Item.Item Index).ToString ()

DataGrid1.Attri butes.Add("onDb lClick", "test('" & key & "')")

End If

End Sub

and on page:

<SCRIPT language="javas cript">

function test(id)

{

window.location ='http://www.redirectPag e.aspx?id="+id

}

</SCRIPT>

Or with other words, How can I know which cell was double clicked?

Thank you,

Simon

"simon" <si*********@st ud-moderna.si> wrote in message
news:Ox******** ******@TK2MSFTN GP12.phx.gbl...
Thank you for your answer. Attributes.Add has only dataGrid( before I had
dataRepeater).
Now I would like that function test is executed when user doubleClicks on
the cell.
I must know which cell is, that I can insert events for that cell (time in
fact, because each cell represent the hour of a day) so I use
e.Item.itemInde x. But this code doesn't work.

Do you know why?

Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
DataGrid1.ItemC reated

DataGrid1.Attri butes.Add("onDb lClick", test(e.Item.Ite mIndex))

End Sub

Function test(ByVal indeks)

label1.Text = indeks

End Function

Thank you,

Simon

"Joe Gass" <jo*@dontspamme .com> wrote in message
news:uA******** *****@tk2msftng p13.phx.gbl...
The html would be something like

<table border="1" cellspacing="0" cellpadding="0" >
<tr>
<td
onDblClick="jav ascript:window. location='http://www.google.com' ">Double Click
this cell</td>
</tr>
</table>

Now to get that in a data bound control...
Perhaps with

..attributtes.a dd("onDblClick" ,"javascript:wi ndow.location='/yourInsertEvent P
age.aspx'")

On the relevant cell, during itemcreated or itemdatabound

"simon" <si*********@st ud-moderna.si> wrote in message
news:eM******** ******@TK2MSFTN GP12.phx.gbl...
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 where he could insert events for that time. Then he go back to that page and see
event in that cell.

How can I do that?

Thank you,
Simon



Nov 18 '05 #5

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
2203
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
4969
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
0
1110
by: Tony Fields | last post by:
Please Help!!! I need to capture the following for the current cell of a datagrid on a webpage when I double-click a cell: 1. Field name (ie. "State", which should be the same as the label, correct? 2. Cell value (ie. "ALABAMA") Purpose: I need to be able to filter the grid's rows by double-clicking
0
1374
by: Agnes | last post by:
My aim is "select the entire row when the user clicks on a cell in the row AND then catch the double click" I can do it separately .eg I can get the double click on any cell but fail to select the entire row. OR. selct the entire row but fail to catch the double click. Anyone can do it both sucessfully ??
5
5491
by: Francois Searle | last post by:
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.
5
4746
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;
2
2309
by: sumuka | last post by:
Hello everyone, How do i achieve left double click in vb 6 . The user has to left double click on the flex grid's cell and the msgbox is to be displayed . So how can i do this. Thanks in anticipation,
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8968
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
7494
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
6735
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
5378
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...
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
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.