This is the code for client side :
var selectedRow = null;
function fnSelectRow(rowObject)
{
if (selectedRow != null)
{
selectedRow.style.backgroundColor = '#ffffff';
}
selectedRow = rowObject;
selectedRow.style.backgroundColor = '#CAD3E4';
}
this function should be called on e.attributes.add("onclick"
,"javascript
:fnselectRow(this)").
I am having the problem to select all the rows when i click the checkbox in
the Datagrid.
"Eliyahu Goldin" wrote:
If you are talking about client side highlighting, you should just keep a
reference to the selected row in a variable and apply to it visual
properties for unselected row just before making another one selected.
Eliyahu
"Grey" <er*****@i-cable.com> wrote in message
news:ev**************@TK2MSFTNGP11.phx.gbl... i know how to highlight row in the datagrid, but how to deselect the row
when user click another one.