Datagrid onmouseover problems

S

steemje

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, this allows me to manage the css for the grid row, 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, using parent and child control references, 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. Or is there a smarter way to do this?

thanks in advance.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top