# ConvertEventHandler

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Represents the method that handles the [Parse](https://docs.wisej.com/api/wisej.web/wisej.web.binding#parse) and [Format](https://docs.wisej.com/api/wisej.web/wisej.web.binding#format) events of a [Binding](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.binding).

{% tabs %}
{% tab title="C#" %}

```csharp
public delegate void ConvertEventHandler(Object sender, ConvertEventArgs e)
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Delegate Sub ConvertEventHandler(ByVal sender As [Object], ByVal e As ConvertEventArgs)
```

{% endtab %}
{% endtabs %}

## Parameters

| Name       | Type                                                                                             | Description                                                                                                                      |
| ---------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| **sender** | [Object](https://docs.microsoft.com/dotnet/api/system.object)                                    | The source of the event.                                                                                                         |
| **e**      | [ConvertEventArgs](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.converteventargs) | A [ConvertEventArgs](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.converteventargs) that contains the event data. |

## Fired By

| Name                                                                                    | Description                                                                                                                                        |
| --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [TypedTextBox.Parse](https://docs.wisej.com/api/editors/wisej.web.typedtextbox#parse)   | Fired when the control parses the text into the typed [Value](https://docs.wisej.com/api/editors/wisej.web.typedtextbox#value).                    |
| [TypedTextBox.Format](https://docs.wisej.com/api/editors/wisej.web.typedtextbox#format) | Fired when the value control formats the typed [Value](https://docs.wisej.com/api/editors/wisej.web.typedtextbox#value) to display it to the user. |
| [Binding.Format](https://docs.wisej.com/api/wisej.web/wisej.web.binding#format)         | Fired when the property of a control is bound to a data value.                                                                                     |
| [Binding.Parse](https://docs.wisej.com/api/wisej.web/wisej.web.binding#parse)           | Fired when the value of a data-bound control changes.                                                                                              |
