/// < ;summary>
/// Data row binding event
///
///
/ //
protected void gvProduct_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
if (e.Row .RowType == DataControlRowType.DataRow )
{
GridViewRow row = e.Row;
CheckBox ckb = row.Cells[0].FindControl("ckb") as CheckBox;
Label ProductID = row.Cells[0].FindControl("lblProductID") as Label;
//Change the background color when the mouse stays
row.Attributes.Add("onmouseover", "this.style.backgroundColor='# 00A9FF'");
//Restore the background color when the mouse moves away
row.Attributes.Add("onmouseout", "gvProducts_onmouseout('" gvProducts.ClientID "','" ckb.ClientID "', this) ");
//Restore the background color when the mouse moves away
row.Attributes.Add("onclick", "SelectRadio('" gvProducts.ClientID "','" ckb.ClientID "', '" ProductID.Text "',this) ");
ckb.Attributes.Add("onclick", "SelectRadio('" gvProducts.ClientID "','" ckb.ClientID "','" ProductID.Text "',document.getElementById('" row.ClientID "')) ");
}
catch (Exception ex)
{
}
}