Provides the editor and binding parameters before a Binding is created, and allows the handler to customize or cancel the request.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class BindingCreatingEventArgs : CancelEventArgs
Inheritance: objectEventArgsCancelEventArgsBindingCreatingEventArgs
Inherited Members
Constructors
Initializes event data with the specified formatting setting for the requested binding.
public BindingCreatingEventArgs(Control control, string propertyName, object propertyDataSource, string dataMember, bool formattingEnabled)
The editor control whose property will be bound.
propertyNamestringThe editor property to bind.
propertyDataSourceobjectThe object used as the binding source.
dataMemberstringThe member or member path on the source to bind to.
formattingEnabledboolThe value to use for FormattingEnabled.
Initializes event data with formatting disabled for the requested binding.
public BindingCreatingEventArgs(Control control, string propertyName, object propertyDataSource, string dataMember)
The editor control whose property will be bound.
propertyNamestringThe editor property to bind.
propertyDataSourceobjectThe object used as the binding source.
dataMemberstringThe member or member path on the source to bind to.
Properties
Gets the editor control whose property will be bound.
public Control Control { get; }
Gets or sets the member or member path on the binding source. The controls use the updated value when constructing the binding.
public string DataMember { get; set; }
Gets the binding source object. The controls pass the manager's list for a CurrencyManager, or its current item otherwise.
public object PropertyDataSource { get; }
Gets or sets the editor property to bind. Changing this value maps the selected source member to a different property on Control.
public string PropertyName { get; set; }