Highlight ASP.NET Web Forms GridView Row Using JavaScript
Here's the code on how to highlight an ASP.NET Web Forms GridView row using JavaScript.
if(e.row.rowtype == DataControlRowType.DataRow) { e.Row.Attributes.Add("onclick","document.getElementById('" + e.Row.ClientID + "') .style.backgroundColor = 'green';"); }
Comments
Post a Comment