protected void gvMasterFiles_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType != DataControlRowType.DataRow)
        {
            return;
        }
        var ddlOutcome       = e.Row.FindControl("ddlOutcome") as DropDownList;
        var txtOutcomeReason = e.Row.FindControl("txtOutcomeReason") as TextBox;

        if (ddlOutcome != null && txtOutcomeReason != null)
        {
            ddlOutcome.Bind(DBReadManager.GetFileValidationOutcomes(), "Description", "ID");
            var fileId = DataBinder.Eval(e.Row.DataItem, "FileId");
            if (fileId != null)
            {
                var details = DBReadManager.GeFileValidationOutcomeDetailsByFileId(Convert.ToDecimal(fileId));
                if (details != null)
                {
                    ddlOutcome.SelectItemByValue(details.ValidationOutcomeId);
                    txtOutcomeReason.SetValue(details.OutcomeReason);
                }
            }

            if (_fileSubmission == null)
            {
                _fileSubmission = DBReadManager.GeFileSubmissionById(Convert.ToDecimal(SubmissionId));
            }
            if (_fileSubmission.SubmissionStatusId == 3 ||
                _fileSubmission.SubmissionStatusId == 4 ||
                _fileSubmission.SubmissionStatusId == 5)
            {
                ddlOutcome.Enabled = false;
            }
            else
            {
                ddlOutcome.Enabled = true;
            }
        }

        var category = DataBinder.Eval(e.Row.DataItem, "Category").ToString();
        var fileName = DataBinder.Eval(e.Row.DataItem, "FileName").ToString();

        var body = new StringBuilder();

        body.Append("<table style='width:100%;padding:5px'><tr style='background:khaki;'>");
        body.Append("<td><b>Category:</b></td>");
        body.AppendFormat("<td>{0}</td>", category);
        body.Append("</tr>");

        body.Append("<tr style='background:khaki;'>");
        body.Append("<td><b>File Name:</b></td>");
        body.AppendFormat("<td>{0}</td>", fileName);
        body.Append("</tr>");

        body.Append("</table>");
        e.Row.Attributes.Add("title", "cssbody=[dvbdy1] cssheader=[dvhdr1] header=[<b><font color='blue'>More Details</font></b>] body=[" + body + "]");
    }