Q: datagrid onmouseover css issue

G

Guest

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.
 

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,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top