Hi,
In standard MS GridView I was using this code;
to make highlights and selections for rows in GridView.
What would be an equivalent for RadGrid?
In standard MS GridView I was using this code;
protected
void
GridView1_RowDataBound(
object
sender, GridViewRowEventArgs e)
{
if
(e.Row.RowType == DataControlRowType.DataRow)
//set settings only to rows
{
e.Row.Attributes.Add(
"onmouseover"
,
"javascript:this.className = 'rowOnMouseOver'"
);
e.Row.Attributes.Add(
"onmouseout"
,
"javascript:this.className = ''"
);
e.Row.Attributes.Add(
"onclick"
, ClientScript.GetPostBackClientHyperlink(
this
.GridView1,
"Select$"
+ e.Row.RowIndex.ToString()));
}
}
What would be an equivalent for RadGrid?