you want to add your javascript code to. For an example:
Private Sub MyDataGrid_ItemCreated _
(ByVal sender As Object, _
ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) _
Handles MyDataGrid.ItemCreated
Dim dgItem As DataGridItem
dgItem = e.Item
If dgItem.ItemType = ListItemType.AlternatingItem _
Or dgItem.ItemType = ListItemType.Item Then
dgItem.Attributes.Add("onmouseover", _
"window.status='select article Xx';")
End If
End Sub
Hope this helps
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!From: "Michael Hetrick" <
[email protected]>
!Subject: window.status messages for sort and hyperlink columns
!Date: Tue, 22 Jul 2003 19:42:23 -0400
!Lines: 13
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <
[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridcontrol
!NNTP-Posting-Host: ip68-100-126-71.nv.nv.cox.net 68.100.126.71
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet.datagridcontrol:5816
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.datagridcontrol
!
!I would like to have a friendly status message onMouseOver of sort columns
!in the datagrid. Instead of the standard "javascript:__doPostBack...", I
!would like to have status bar show "Sort By [ColumnName]".
!
!Likewise, I would like to be able to have status messages based on row for
!the grid's HyperlinkColumn as in "View Details for [Item]".
!
!How would I go about doing this? Thanks in advance...
!
!
!Michael
!
!
!