EnableInteractiveSelection: Boolean;
EnableInteractiveSelection: boolean;
The EnableInteractiveSelection property determines whether data of the selected range can be moved, and cells can be automatically filled based on the selected range.
Available values:
True. Default value. It is available to move data of the selected range and autofill selected cells with data in the table.
False. It is prohibited to autofill selected cells with data.
To execute the example a form that contains the Button component with the Button1 identifier, the UiTabSheet component with the UiTabSheet1 identifier and the TabSheetBox component with the TabSheetBox1 identifier are required. Set the UiTabSheet1 as a data source for the TabSheetBox1.
This example is a handler of the OnClick event for the Button1 component.
Add a link to the Tab system assembly.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
View: ITabView;
Begin
View := UiTabSheet1.TabSheet.View;
View.EnableInteractiveSelection := False;
End Sub Button1OnClick;
After executing the example autofilling of cells is disabled.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Tab;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
View: ITabView;
Begin
View := uiTabSheetNet1.TabSheetUi.TabSheet.View;
View.EnableInteractiveSelection := False;
End Sub;
See also: