System.Windows.Forms
1.0.5000.0
2.0.0.0
System.EventArgs
The is used to format and unformat values displayed by a Windows Forms control that is bound to data through a object. The event occurs whenever a control property is bound to a value and the event occurs whenever the bound value changes.
The and events allow you to create custom formats for displaying data. For example, if the data in a table is of type , you can specify that the data should be displayed in the local currency format--by setting the property of the to the formatted value in the event. You must consequently unformat the displayed value in the event.
For more information about handling events, see [<topic://cpconEventsOverview>].
Provides data for the and events.
Constructor
To be added.
Initializes a new instance of the class.
An that contains the value of the current property.
The of the value.
1.0.5000.0
2.0.0.0
Property
System.Type
To be added.
The property enables you to check the type of the property that the value is being converted to.
Gets the data type of the desired value.
1.0.5000.0
2.0.0.0
Property
System.Object
To be added.
The value contained by the property depends on the event in which the is returned. The can be returned in either the event or the event.
When the is returned in the event, the property contains the unformatted property value of the data source. Within the event, you can read the property value, format the value, and reset the property to the new (formatted) value, thereby setting the value displayed in the data-bound control.
When the is returned in the event, the property contains the custom-formatted value of the data-bound control. Within the event, you must read the formatted value, parse it, and convert it back to the same data type as the data source. You can then reset the property to the unformatted value, and thereby set the value of the data source. To determine the type of the data source, examine the property value.
Gets or sets the value of the .
1.0.5000.0
2.0.0.0