/// <summary> /// Gets a string for a detail row, given a DataRowView for the row /// </summary> /// <param name="drv">DataRowView for the given row</param> /// <returns>String to be printed to the report</returns> protected virtual string GetDetailRowString(DataRowView drv) { object obj = drv[this.Field]; FormatColumnEventArgs e = new FormatColumnEventArgs(); e.OriginalValue = obj; if (obj != null) { e.StringValue = ApplyFormat(obj); } else { e.StringValue = this.NullValueString; } // fire event if (this.FormatColumn != null) { this.FormatColumn(this, e); } UpdateMathForRow(drv, obj, e.StringValue); return(e.StringValue); }
/// <summary> /// Gets a string for a detail row, given a DataRowView for the row /// </summary> /// <param name="drv">DataRowView for the given row</param> /// <returns>String to be printed to the report</returns> protected virtual string GetDetailRowString(DataRowView drv) { object obj = drv[this.Field]; FormatColumnEventArgs e = new FormatColumnEventArgs(); e.OriginalValue = obj; if (obj != null) { e.StringValue = ApplyFormat (obj); } else { e.StringValue = this.NullValueString; } // fire event if (this.FormatColumn != null) { this.FormatColumn (this, e); } UpdateMathForRow (drv, obj, e.StringValue); return e.StringValue; }