Home All Groups Group Topic Archive Search About

Datagrid onclick change cell backcolor

Author
7 Jun 2005 12:08 PM
Franck
Hi,
is it possible to change datagrid cell backcolor when user click on it
?

Thks for help.

Author
7 Jun 2005 1:24 PM
Eliyahu Goldin
Sure,

In either ItemDataBound or PreRender event get to the cell and set
Attributes["onclick"]="onCellClick(this)";

In javascript function onCellClick set visual parameters or apply a css
style to the cell referenced by the input parameter.

Eliyahu

Show quoteHide quote
"Franck" <wesley.sa***@gmail.com> wrote in message
news:1118146084.801032.191690@g49g2000cwa.googlegroups.com...
> Hi,
> is it possible to change datagrid cell backcolor when user click on it
> ?
>
> Thks for help.
>

Bookmark and Share