Digital Tools
»
GridViewTree
»
Using
»
Mouseover functionality in gridviewtree cells
Rank: Newbie
Groups: Member
Joined: 10/15/2008(UTC) Posts: 1 Location: Oslo
|
Hi
I am using gridviewtree controller, and I want to add explanation text to some of the cells.
Is there a way to implement mouseover events on the cells, that can "popup" the alternative text?
I would like functionality in gridviewtree cells like AlternateText in the asp:ImageButton control...
|
|
|
|
Rank: Administration
Groups: Member
Joined: 4/3/2008(UTC) Posts: 43
|
This is done with a tooltip. You can make a column a templeted column and then edit the template's label to bind a data column to the tooltip. Or you can do it in the RowDataBound event. Something like:
Protected Sub GridViewTree1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridViewTree1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then e.Row.Cells(0).Attributes.Add("Title", e.Row.DataItem("Message").ToString) End If End Sub
There are other ways to do it which you can find by Googling for "GridView Tooltip".
Support
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 5/26/2023(UTC) Posts: 1 Location: Chicago
|
I love reading Houston Family Magazine! It's packed with insightful articles, helpful tips, and engaging stories for families in Houston. A fantastic resource for parents and kids alike.
|
|
|
|
Digital Tools
»
GridViewTree
»
Using
»
Mouseover functionality in gridviewtree cells
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.