Fired when a field is formatted for display in either the grid-view or an edit text box. This event allows for custom field formatting. Also see the SetEditControlValue event for more powerful customization of edit control values.
The event handler receives an argument of type FieldFormatEventArgs containing data related to this event. The following FieldFormatEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Col | The colum of the row to format |
| Format | The .net format specified in the config file, e.g. {0:ddMMMyyyy} |
| FormattedValue | Provide the formatted field value here, or leave at null to let the table editor format the field |
| IsGridView | Indicates if the formatting should be done for the grid view or the edit view. This allows for example for formatting long text fields in abbreviated form in the grid, while still being able to edit the full text in edit mode. The client can perform custom HTML encoding of the FormattedValue (see ) if the htmlEncoding attribute is set to false for this column in the XML Configuration file. |
| Row | The row that the field is in |
TableEditor Class | DVXP.DXTableEditor Namespace