logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

frostenv
#1 Posted : Wednesday, October 15, 2008 3:01:50 AM(UTC)
frostenv

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...

Support
#2 Posted : Wednesday, October 15, 2008 7:48:33 AM(UTC)
Support

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

michael0163
#3 Posted : Friday, May 26, 2023 4:43:36 AM(UTC)
michael0163

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.
Users browsing this topic
Guest
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.

Powered by YAF 1.9.6.1 | YAF © 2003-2023, Yet Another Forum.NET
This page was generated in 0.090 seconds.