IsEditEnabled: Boolean;
The IsEditEnabled property determines whether table data editing is available.
Available values:
True. Table data editing is available.
False. Table data editing is unavailable.
To get whether tale data editing is available, use the IPivot.CanEdit property.
To execute the example, place on the form two Button components named Button1 and Button2, the TabSheetBox component named TabSheetBox1, and the UiErAnalyzer component named UiErAnalyzer1. Specify UiErAnalyzer1 as a data source for TabSheetBox1. An express report is a data source for UiErAnalyzer1.
Add links to the Express, Forms, Pivot, and Tab system assemblies.
The example is a handler of the OnClick event for the Button1 and Button2 components.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Pivot: IPivot;
Begin
Pivot := UiErAnalyzer1.ErAnalyzer.ActiveSheet.Pivot;
Debug.WriteLine ("-----------------------------------------");
// Check if table data editing is available
If Pivot.CanEdit = True Then
Debug.WriteLine ("Table data editing is available");
Else
Debug.WriteLine ("Table data editing is unavailable. Enable editing");
End If;
// Refresh table
Pivot.Refresh;
End Sub Button1OnClick;
Sub Button2OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Pivot: IPivot;
Begin
Pivot := UiErAnalyzer1.ErAnalyzer.ActiveSheet.Pivot;
// Unlock cell editing
Pivot.IsEditEnabled := True;
Debug.WriteLine ("-----------------------------------------");
Debug.WriteLine ("Table data editing is available");
End Sub Button2OnClick;
Clicking the first buttons displays in the console the message whether table data editing is available. Clicking the second button unlocks cell editing.
See also: