Tooltips on datagrid titles

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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>
    2. 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...
    3. 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...
    4. ToolTips in Director
      How to create tooltips?
    5. 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...
  3. #2

    Default 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...
    > 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
    >
    >

    Saravana Guest

  4. #3

    Default 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...
    > 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...
    > > 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139