Q: datagrid onmouseover css issue

Discussion in 'ASP .Net' started by =?Utf-8?B?c3RlZW1qZQ==?=, Aug 2, 2005.

  1. Hallo friends,

    I am wondering how to influence the presentation of induvidual cells in a
    grid row.

    At present I have added :

    "e.Item.Attributes.Add("onmouseover", "this.className='TreeMouseOver';")"

    on the itemDataBound, but I need to change an icon in a specific cell of the
    same row at the same time. I guess my question is two fold.

    1. how do I reference the control in the cell, as .Net generates "internal"
    Id's, so using

    "this.getElementById('ID').className='MyStyleRef'" were ID should be the id
    of the control just won't cut it. As the ID is determined by .Net at runtime.

    2. is there a smarter way to do this.

    thanks in advance.
     
    =?Utf-8?B?c3RlZW1qZQ==?=, Aug 2, 2005
    #1
    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. Tor Inge Rislaa
    Replies:
    3
    Views:
    16,129
    Jerry III
    Aug 6, 2003
  2. Jay
    Replies:
    2
    Views:
    41,695
    Alex Papadimoulis
    Sep 30, 2003
  3. =?Utf-8?B?QXZpIFNoaWxvbg==?=

    OnMouseOver for a DataGrid control

    =?Utf-8?B?QXZpIFNoaWxvbg==?=, Jul 12, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    2,180
    Mr. Dot Net
    Jul 12, 2004
  4. Jan C. Faerber

    css - onmouseover

    Jan C. Faerber, Oct 23, 2009, in forum: HTML
    Replies:
    24
    Views:
    2,844
    dorayme
    Oct 25, 2009
  5. steemje

    Datagrid onmouseover problems

    steemje, Aug 2, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    108
    steemje
    Aug 2, 2005
Loading...

Share This Page