Can datagrid do this?

  • Thread starter Thread starter Danny Ni
  • Start date Start date
D

Danny Ni

Hi,

I wonder if it's possible for datagrid to display a grid of data, then when
the mouse moves into a row, the background color of the row changes? Of
course if mouse moves out of the row, background color changes back. If
possible, please provide a link to sample codes.

TIA
 
Everything is almost possible! But you will have to add a number of rows of
Javascript and seriously to make that work with a datagrid I guess therre
are two ways...

1. You can use a Single Template ItemColumn and in there have a html table
that calls on a javascript (from the TR I guess) that will do this.. then
you won't have to do anythign in the code behind really..

2. .. you can Call the TR in the rendered HTML thru the code behind and add
attrubute and call the jacascript to do this.. I think this will be messy
and hard to make a WHOLE row change.

I'm not gonna write this for you in code as it's a pretty time consuming
thing to do just for an answer but I 'm pretty sure it's possible and if I
would to do this.. I would go for the first alternative..

/Lars
 

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

Back
Top