ButtonField.FormatDataTextValue(Object) Method

Definition

Formats the specified field value for a cell in the ButtonField object.

protected virtual string FormatDataTextValue (object dataTextValue);

Parameters

dataTextValue
Object

The field value to format.

Returns

The field value converted to the format specified by the DataTextFormatString property.

Remarks

The FormatDataTextValue method is a helper method that is used to transform a field value to the format that is specified by the DataTextFormatString property.

Notes to Inheritors

When extending the ButtonField class, you can override the FormatDataTextValue(Object) method to perform a custom formatting routine.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also