473,326 Members | 2,805 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,326 software developers and data experts.

Datagrid + Tooltip question

I have a datagrid on a web page that has several columns in it.

Is there a way to provide a tooltip for each of the columns (i.e. to say how
they were calculated or what a specific literal in the column means)?

Thanks

SC

Nov 18 '05 #1
2 1071
Sure, if you want to have decent looking popups, pick your javascript code, http://www.walterzorn.com/tooltip/tooltip_e.htm this one for example, and work it into the ItemDataBound event the datagrid uses.

If e.Item.ItemType = ListItemType.Header Then

Dim td as tableCell = ctype(e.item.cells(?), tableCell)

'whatever it takes to make html like you need it from this point

End If

<me@privacy.net> wrote in message news:eO**************@TK2MSFTNGP12.phx.gbl...
I have a datagrid on a web page that has several columns in it.

Is there a way to provide a tooltip for each of the columns (i.e. to say how
they were calculated or what a specific literal in the column means)?

Thanks

SC


Nov 18 '05 #2
In the itemcreated event, if the item type is header, look at the control
types. For autgenerated columns, they will be tablecells. In VB.Net, the
following code will give you access to their properties, including tooltip,
which you can just set in text:

directcast(e.Item.Controls(1),TableCell).ToolTip = "This column provides
useful information..."

<me@privacy.net> wrote in message
news:eO**************@TK2MSFTNGP12.phx.gbl...
I have a datagrid on a web page that has several columns in it.

Is there a way to provide a tooltip for each of the columns (i.e. to say how they were calculated or what a specific literal in the column means)?

Thanks

SC

Nov 18 '05 #3

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

Similar topics

1
by: Stephen | last post by:
Is it possible to add a tooltip in the column of a Datagrid. Can someone please show me how I would do this for the datagrid column below. Thanks for any help anyone can give me. Here is the...
2
by: Stephen | last post by:
I'm trying to work with a datagrid column in order to display a tooltip in a datagrid cell. The reason I am doing this is because I have some long strings being returned and I don't want the rows...
4
by: JerryP | last post by:
Hi Group, Id like to have a tooltip for each col in the datagrid. Is there a way to do that ? Thanks ! Jerry
1
by: Lars Netzel | last post by:
I need to have a Tooltip on each Cell in a datagrid, I don't know how to do this. I'm using Styles to the datagrid (Which I asume most people do since you never need to show all the fields from the...
2
by: Jon | last post by:
I want to add a tooltip to my datagrid rows, but only for one of the columns. I figured out how to add a tooltip for each row, but I only want a tooltip for one column of the row. How would I...
3
by: Craig G | last post by:
what way do you code it? i tried the following but it wouldnt display it lblAdd_info is a hidden field in the cell itself that contains the data i want to display in the tooltip text. i added the...
1
by: Gunjan Garg | last post by:
Hello All, I am working to create a generic datagrid which accepts a datasource(ListData - This is our own datatype) and depending on the calling program customizes itself for sorting,...
0
by: Sue | last post by:
I'm missing something very simple here, and I need an answer fairly quick if possible. I'm behind on this project now because of this... Code examples below question... I have a datagrid (DG)...
0
by: rupalirane07 | last post by:
Both grids displays fine. But the problem is only parent datagrid sorting works fine but when i clik on child datagrid for sorting it gives me error: NullReferenceException error Any...
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)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.