Mouse over in datagrid?

P

Peter Kamitz

I want to show a message when the mouse is over a tablerow of the datagrid!
Any ideas how to make such a thing??


thanks peter
 
S

Saravana [MVP]

You can go for tooltip property of datagriditem. If you set tooltip for your
datagriditem, then it will show message(tooltip) when mouse moves over
tablerow of the datagrid. For setting tooltip for datagriditem, see this
sample.


Private Sub DataGrid1_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs)
Handles DataGrid1.ItemCreated

If e.Item.ItemType = ListItemType.item or e.Item.ItemType =
ListItemType.alternatingitem Then
e.item.Tooltip = "Your Tooltip...."

end if

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top