Professional Web Applications Themes

Tooltips on datagrid titles - ASP.NET General

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

  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. #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.emailplease.com> wrote in message
    news:bfqobc$sa$1newsg4.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

  3. #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" <saravanksct.co.in> wrote in message
    news:#FU4UJpUDHA.424TK2MSFTNGP11.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.emailplease.com> wrote in message
    > news:bfqobc$sa$1newsg4.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

Similar Threads

  1. Hyperlink titles / hover tooltips
    By TSPIM in forum Macromedia Contribute General Discussion
    Replies: 5
    Last Post: May 11th, 06:32 PM
  2. Javascript Control of ToolTips...Can You?
    By Garrett_Cobarr@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 2
    Last Post: April 20th, 07:45 PM
  3. Replies: 7
    Last Post: September 18th, 01:26 AM
  4. ToolTips in Safari
    By Scott Heath in forum Mac Networking
    Replies: 4
    Last Post: August 22nd, 07:18 PM
  5. ToolTips in Director
    By nomshar in forum Macromedia Director Lingo
    Replies: 1
    Last Post: August 6th, 11:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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