Back to Devexpress

BaseLayoutItem.DataBindings Property

windowsforms-devexpress-dot-xtralayout-dot-baselayoutitem-6fe6e828.md

latest1.9 KB
Original Source

BaseLayoutItem.DataBindings Property

Gets the data bindings for the layout item.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Data")]
public ControlBindingsCollection DataBindings { get; }
vb
<DXCategory("Data")>
Public ReadOnly Property DataBindings As ControlBindingsCollection

Property Value

TypeDescription
ControlBindingsCollection

A ControlBindingsCollection that contains the Binding objects for the item

|

Remarks

Use the DataBindings property to access the ControlBindingsCollection. By adding Binding objects to the collection, you can bind any property of a control to the property of an object.

The DataBindings property allows you to bind the BaseLayoutItem.Text and BaseLayoutItem.CustomizationFormText properties.

The following code binds the LayoutControlItem.Text property to a Name field in a data source (table1BindingSource):

csharp
layoutControlItem1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.table1BindingSource, "Name", true));

See Also

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.XtraLayout Namespace