private void FillAlertMessage(tblAlert alert = null)
 {
     if (alert != null)
     {
         lblSubject.Text  = alert.Subject;
         lblDateTime.Text = alert.FormattedDateCreated;
         lblMessage.Text  = alert.Message;
     }
     else
     {
         lblSubject.Text  = string.Empty;
         lblDateTime.Text = string.Empty;
         lblMessage.Text  = string.Empty;
     }
 }
    void gvAlerts_RowCreated(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            LinkButton lnkbutton = (LinkButton)e.Row.FindControl("lnkSubject");
            Label      lblLabel  = (Label)e.Row.FindControl("tbDateCreated");

            tblAlert alert = e.Row.DataItem as tblAlert;

            if (alert != null && alert.IsRead == false)
            {
                lnkbutton.Style.Add(HtmlTextWriterStyle.FontWeight, "bold");
                lblLabel.Style.Add(HtmlTextWriterStyle.FontWeight, "bold");
            }
        }
    }