Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Javascript mouseover event on datagrid

Posted on 2009-02-17
Medium Priority
Last Modified: 2012-05-06
I have a datagrid and in column 1 it has technician leve such as technical level 1, technical level II and so on.  What I would  like to happen is if someone mouses over the column it will show what the training is for that technical level.  So if a user mouses over technical level 1 it will show the requirements.  Still using datagrids in asp.net 1.1  Thanks
Don't know where to start for this

Open in new window

Question by:kdeutsch
LVL 11

Expert Comment

ID: 23662621
I'm not sure if this in .Net 1.1 or not.  You can use the ToolTip property on a LinkButton, Label, etc. to display a message when the user hovers the mouse over a control.
LVL 12

Expert Comment

ID: 23666194

Expert Comment

ID: 23750757
You get the data in form is dataset/ or datatable.
You have datagrid, ie dgTechnicians
During the datagrid binding, dgTechnicians_databound event
Private Sub dgTechnicians_databount(
(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgTechnicians.DataBound

Accepted Solution

THBA earned 2000 total points
ID: 23750822
Pushed the wrong button.
I am in framework 2.0, so below  in the code snippet is just a rough skeleton of what should happen:

Private Sub dgTechnicians_databount(
(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgTechnicians.DataBound 
For each dgr as datagridrow in dgTechnician.row
  if dgr = datacontrolrowtype.datarow then
 Dim txtBox1 as textboy = CType (dgr.findcontrol"nameoftextbox", textbox, textbox)
 ' now attach the tooltip to your textbox
Dim strTooltip as string
strTooltip = "build your string for the tooltip "
  txtBox1.tooltip = strTooltip 
  end if

Open in new window


Author Closing Comment

ID: 31547923
Sorry took so long to accept

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question