dll: The ItemDataBound event is probably the one you are looking for. There are several articles floating around (some discussed here at Tek-Tips) regarding the various alterations of the DataGrid during binding of the latter, as an example:
Sub dgSites_ItemDataBound(sender As Object, e As System.Web.UI.WebControls.DataGridItemEventArgs)
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
'Add the OnMouseOver and OnMouseOut method to the Row of DataGrid
e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='#CCFFFF'"

e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor=''"
e.Item.Cells(0).Style("cursor"

= "hand"
e.Item.Cells(1).Style("cursor"

= "hand"
e.Item.Cells(2).Style("cursor"

= "hand"
e.Item.Cells(0).Attributes.add("onClick","return openWinSites('x" & e.Item.Cells(0).Text & "');"

e.Item.Cells(1).Attributes.add("onClick","return openWinSite('w" & e.Item.Cells(0).Text & "');"

e.Item.Cells(2).Attributes.add("onClick","return openWinSite('p" & e.Item.Cells(0).Text & "');"

e.Item.Cells(3).Attributes.add("onClick","return openWinSite('o" & e.Item.Cells(0).Text & "');"

End If
End Sub