ISPrincess
Programmer
In the RowDataBound event of my Datagrid, I have the following line of code:
in the HEAD of the page I have the following JS:
When I click on the Datagrid Row, it does highlight it LightSteelBlue, but clicking again does not turn it back to white. There must be something obvious to an experienced JS developer in my syntax.
Can someone take a look, please?
Thanks!
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
Code:
e.Item.Attributes.Add("OnClick", "HighlightRow( this );")
in the HEAD of the page I have the following JS:
Code:
function HighlightRow(SRow)
{
var oItem = SRow.style.backgroundColor;
if(oItem != 'LightSteelBlue')
{SRow.style.backgroundColor='LightSteelBlue';
// grdEmployees.SelectedItemStyle.BackColor
}else
{SRow.style.backgroundColor='white';
//grdEmployees.ItemStyle.BackColor
}
}
When I click on the Datagrid Row, it does highlight it LightSteelBlue, but clicking again does not turn it back to white. There must be something obvious to an experienced JS developer in my syntax.
Can someone take a look, please?
Thanks!
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips