Ask a Question related to ASP.NET General, Design and Development.
-
Stevie_mac #1
Tooltips on datagrid titles
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
Stevie_mac Guest
-
Hyperlink titles / hover tooltips
Can users enter hyperlink titles through Contribute? E.g. <a href="#" title="Link title / tooltip">Hyperlink with a hover link title/tooltip</a> -
How to add Tooltips to image at runtime ?
I have created a VB app that generates a wireless network status map several times a day. The app adds hidden controls in specific areas of the... -
ToolTips in Safari
The Title= attribute in HTML is presented by most browsers as a tooltip. Mozilla under OSX does fine with this, but Safari seems to ignore it. Am I... -
ToolTips in Director
How to create tooltips? -
taskbar tooltips hidden
Any tooltips displayed on mouse-over of items in the taskbar (including clock)appear behind the taskbar making them impossible to read. It is... -
Saravana #2
Re: Tooltips on datagrid titles
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.email@please.com> wrote in message
news:bfqobc$sa$1@newsg4.svr.pol.co.uk...columns> 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> 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
>
>
Saravana Guest
-
Stevie_mac #3
Re: Tooltips on datagrid titles
Thanks man,
I knew it would be something simple, only I didn't think it would be that
obvious. DOH!
"Saravana" <saravank@sct.co.in> wrote in message
news:#FU4UJpUDHA.424@TK2MSFTNGP11.phx.gbl...handler,> You can set tootip to datagrid header by writing itemcreated eventfor> you can get header item in this event handler and then set the tool tipthe> 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.email@please.com> wrote in message
> news:bfqobc$sa$1@newsg4.svr.pol.co.uk...> columns> > 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> > 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>> > 'label' in the header but i just don't wanna!
> >
> > Many thanks, in advance - Stevie_mac
> >
> >
>
Stevie_mac Guest



Reply With Quote

