Can you get a mouse over to work in a datagrid cell

Discussion in 'ASP .Net' started by Craig G, Feb 1, 2005.

  1. Craig G

    Craig G Guest

    reason i ask is

    i have a column (Notes) which can have upto 500 characters in it. so its too
    big to display the whole field in the grid. so what i have done is placed a
    button in the template column which when clicked displays the full content
    of the field in a label below the grid. but what i would like is if the user
    moused over the button then it would show say the first 100char of the field
    in a tooltiptext sort of display

    is this possible?

    Cheers,
    Craig
    Craig G, Feb 1, 2005
    #1
    1. Advertising

  2. Craig,

    In ItemDataBound event get the first 100 characters of the field value and
    assign them to the cell's ToolTip property.

    Eliyahu

    "Craig G" <craig.gamble@y_arrasoftware.com> wrote in message
    news:%234e%...
    > reason i ask is
    >
    > i have a column (Notes) which can have upto 500 characters in it. so its

    too
    > big to display the whole field in the grid. so what i have done is placed

    a
    > button in the template column which when clicked displays the full content
    > of the field in a label below the grid. but what i would like is if the

    user
    > moused over the button then it would show say the first 100char of the

    field
    > in a tooltiptext sort of display
    >
    > is this possible?
    >
    > Cheers,
    > Craig
    >
    >
    Eliyahu Goldin, Feb 1, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Davisro
    Replies:
    2
    Views:
    1,307
    Jim Corey
    Apr 23, 2004
  2. Richard Dixson
    Replies:
    1
    Views:
    508
    Joe Fallon
    May 18, 2004
  3. PJ6
    Replies:
    2
    Views:
    739
  4. =?Utf-8?B?Tkg=?=

    dynamic image on mouse over of gridview cell

    =?Utf-8?B?Tkg=?=, Apr 5, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    4,001
    =?Utf-8?B?Y2xpY2tvbg==?=
    Apr 5, 2006
  5. Owen Brunker
    Replies:
    7
    Views:
    127
    Owen Brunker
    Jul 12, 2007
Loading...

Share This Page