473,850 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GridView - ToolTip

I have a very unique requirement, I have to add a tooltip in a grid view
control, the tooltip should be similar to this link:

http://web-graphics.com/mtarchive/BubbleTooltips.html ...(hover at the link)

Do you have any suggestion on this..

Thanks

ASP.NET 2.0 / C#

Mar 23 '07 #1
3 7282
It is not that difficult. Basically, you need to handle client side events
onmouseover and onmouseout for the grid cells. In the event handlers you
will control the cursor shape and make a tooltip with some javascripting and
background images. You will need to setup the event handlers in the grid's
RowDataBound event with the TableCell's Attributes collection. You can pass
the tooltip text in the ToolTip property and pick it up on client side in
the <td>'s title property.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Raj" <Ra*@discussion s.microsoft.com wrote in message
news:62******** *************** ***********@mic rosoft.com...
I have a very unique requirement, I have to add a tooltip in a grid view
control, the tooltip should be similar to this link:

http://web-graphics.com/mtarchive/BubbleTooltips.html ...(hover at the
link)
>
Do you have any suggestion on this..

Thanks

ASP.NET 2.0 / C#

Mar 23 '07 #2
Hi

Thanks !

I am not able to follow "In the event handlers you will control the cursor
shape and make a tooltip with some javascripting and background images."

"Eliyahu Goldin" wrote:
It is not that difficult. Basically, you need to handle client side events
onmouseover and onmouseout for the grid cells. In the event handlers you
will control the cursor shape and make a tooltip with some javascripting and
background images. You will need to setup the event handlers in the grid's
RowDataBound event with the TableCell's Attributes collection. You can pass
the tooltip text in the ToolTip property and pick it up on client side in
the <td>'s title property.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Raj" <Ra*@discussion s.microsoft.com wrote in message
news:62******** *************** ***********@mic rosoft.com...
I have a very unique requirement, I have to add a tooltip in a grid view
control, the tooltip should be similar to this link:

http://web-graphics.com/mtarchive/BubbleTooltips.html ...(hover at the
link)

Do you have any suggestion on this..

Thanks

ASP.NET 2.0 / C#


Mar 23 '07 #3
This means you have to be able to produce some javascript that will achieve
the desired effect.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Raj" <Ra*@discussion s.microsoft.com wrote in message
news:84******** *************** ***********@mic rosoft.com...
Hi

Thanks !

I am not able to follow "In the event handlers you will control the cursor
shape and make a tooltip with some javascripting and background images."

"Eliyahu Goldin" wrote:
>It is not that difficult. Basically, you need to handle client side
events
onmouseover and onmouseout for the grid cells. In the event handlers you
will control the cursor shape and make a tooltip with some javascripting
and
background images. You will need to setup the event handlers in the
grid's
RowDataBound event with the TableCell's Attributes collection. You can
pass
the tooltip text in the ToolTip property and pick it up on client side in
the <td>'s title property.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Raj" <Ra*@discussion s.microsoft.com wrote in message
news:62******* *************** ************@mi crosoft.com...
I have a very unique requirement, I have to add a tooltip in a grid
view
control, the tooltip should be similar to this link:

http://web-graphics.com/mtarchive/BubbleTooltips.html ...(hover at the
link)
>
Do you have any suggestion on this..

Thanks

ASP.NET 2.0 / C#



Mar 25 '07 #4

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

Similar topics

0
1116
by: Fernando Monteiro | last post by:
Hello, Could anyone please help me ? I've a GridView and I'd like to insert one of the girdview's dataset field as a row tooltip. The grid view is declared like: <asp:GridView ID="grdLista" runat="server" DataSourceID="sdsList"
0
1171
by: Krish | last post by:
Hello Gurus, I have GridView control on web page which has couple of radio button controls as one group. On editing a particular row in grid, i have to validate based on user selection on radio button i have to validate another column data in the grid. Pl. help me with code snippets. Thank you. <asp:TemplateField HeaderText="Code Translate"> <ItemTemplate>
1
9363
by: Miguel Dias Moura | last post by:
Hello, I have a GridView in my page which is created in runtime. It works fine. My page has 2 Asp Buttons: - The HIDE button makes GridView.Visible = False; - The SHOW button makes GridView.Visible = True. I press HIDE and the GridView disappears as expected. After it I press SHOW and the GridView doesn't show.
3
6519
by: graphicsxp | last post by:
Hi, I would like to show a tooltip when the user move the mouse over the first column of my gridview. The tooltip should be bound to a field of the gridview's datasource that correspond to the row being hovered. How can I do that ?
2
2184
by: shapper | last post by:
Hello, I need to get the value of a Gridfiew field named "Channel" which is the first column of the Gridview. I want to use that value to build the ToolTip of an image. How can I do this? Here is my code:
1
2712
by: mark4asp | last post by:
I moved a page to another web-site and now it's broke! I had 5 pages in their own web-site. These pages have now been moved to another web-site. Everything is fine except that one of the pages, which I had trouble with in the past (i.e. same problem), is now partly broke. The paging no longer fully works in the gridview. The gvAwarded_RowDataBound code works to load the ddlPager with the correct number of pages.
0
4671
by: sharonrao123 | last post by:
hello all, I have a parent gridview company and in this one a nested gridview people, Is it possible to allow the user to select one row or multiple rows from the people gridview using a check box and also get the datakey (in my case personid) of the the rows selected. Please point me in the right direction. This is what i have so far but i have problem accessing the child gridview in the button click event Cheers, Shilpa. <asp:GridView...
0
1249
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use vb 2005 and gridview control I want to use a tooltip control When the user clicks a row, set the tooltip to "row i" where i is the row number. I did (in gridInterfaceCommands_SelectionChanged): ttMyTooltip.SetToolTip(mygrid, "row i") I verified and the command executes (I put a breakpoint...)
0
906
by: mahesh123 | last post by:
Hi, I am using gridview in my asp.net with VB form.If i have long text to be displayed in one of the columns in gridview it is showing complete text.Waht i want is it should show only few characters that is only 100 characters in the gridview display and in tooltip it should show complete text.I can show complete text in the tooltip but cannot display few characters in the grid and also can i specify tooltip time to display any where? can...
0
9744
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
11011
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
10725
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,...
1
7900
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
7072
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
5931
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4547
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
4142
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3178
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.