protected override string FormatDataValue( object dataValue, bool encode ) { if (dataValue is string && TruncateLength > 0) { return base.FormatDataValue( ( (string)dataValue ).Truncate( TruncateLength ), encode ); } return base.FormatDataValue( dataValue, encode ); }