ITabCellStyle.Binding

Syntax

Binding: String;

Description

The Binding property determines parameters of the editor that is used to edit call values.

Comments

Editor parameters are set using the binding string. To get the binding string, use the property  IBindingValue.AsString.

NOTE. Changing cell value editor parameters does not affect the value of the ITabRange.Value property.

Example

Executing the example requires a form with the Button1 button located on it, the TabSheetBox component named TabSheetBox1 and a data source for TabSheetBox1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    BM: IBindingManager;
    ComboBoxBinding: IBindingComboBox;
Begin
    BM := New BindingManager.Create;
    ComboBoxBinding := BM.CreateByUi("ComboBox"As IBindingComboBox;
    ComboBoxBinding.Items := "1;2;3;4;5";
    ComboBoxBinding.ListMode := False;
    ComboBoxBinding.Separators := ";";
    ComboBoxBinding.Value := "3";
    UiTabSheet1.TabSheet.Cell(00).Style.Binding := ComboBoxBinding.AsString;
End Sub Button1OnClick;

On clicking the button, values editor is set for the A0 table cell. On editing the cell a drop-down list is displayed, containing five values, by default the value "3" is selected.

See also:

ITabCellStyle