You can set tootip to datagrid header by writing itemcreated event handler,
you can get header item in this event handler and then set the tool tip for
each columns. For example,
Private Sub DataGrid1_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemCreated
If e.Item.ItemType = ListItemType.Pager Then
e.item.cells(0).tooltip = "tooltip msg"
..................
end if
end sub
--
Saravana
Microsoft India Community Star,
MCAD,SE,SD,DBA.
"Stevie_mac" <no******@please.com> wrote in message
news:bf*********@newsg4.svr.pol.co.uk...
I'm probably missing something real easy here but...
How do i set Tooltips to the header cells in a datagrid?
Detail...
Datagrid is databound, using non template named columns with 'Create
columns at Run Time' disabled.
PS,
i know i can set Tooltips to the cell/rows of the datagrid in the
ItemDataBound event - but can't seem to get to the header cells!
also, i know i can make template columns & set the tooltip directly to the
'label' in the header but i just don't wanna!
Many thanks, in advance - Stevie_mac