Sometimes we need to give attractive look to a GridView by highlighting rows.
Now the query is how to make row hightlight?
First define two css class as below :
Now we have to put the below code in row databound method of the gridview.
GridView1_RowDataBound(Object sender, GridViewRowEventArgs e)
(e.Row.RowType == DataControlRowType.DataRow)
}Now you will get the highlighted row when mouse over.
Just run the application and check the output.