New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
public class BindingCreatingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsBindingCreatingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data with the specified formatting setting for the requested binding.

C#
public BindingCreatingEventArgs(Control control, string propertyName, object propertyDataSource, string dataMember, bool formattingEnabled)
Parameters:controlControl

The editor control whose property will be bound.

propertyNamestring

The editor property to bind.

propertyDataSourceobject

The object used as the binding source.

dataMemberstring

The member or member path on the source to bind to.

formattingEnabledbool

The value to use for FormattingEnabled.

Initializes event data with formatting disabled for the requested binding.

C#
public BindingCreatingEventArgs(Control control, string propertyName, object propertyDataSource, string dataMember)
Parameters:controlControl

The editor control whose property will be bound.

propertyNamestring

The editor property to bind.

propertyDataSourceobject

The object used as the binding source.

dataMemberstring

The member or member path on the source to bind to.

Properties

Gets the editor control whose property will be bound.

C#
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.

C#
public string DataMember { get; set; }

Gets or sets whether the created Binding enables formatting and parsing. The four-argument constructor initializes this value to false.

C#
public bool FormattingEnabled { get; set; }

Gets the binding source object. The controls pass the manager's list for a CurrencyManager, or its current item otherwise.

C#
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.

C#
public string PropertyName { get; set; }