IEaxGrid.AdjustSettings

Fore Syntax

AdjustSettings: IEaxGridAdjustSettings;

Fore.NET Syntax

AdjustSettings: Prognoz.Platform.Interop.Express.IEaxGridAdjustSettings;

Description

The AdjustSettings property returns parameters of cell size autofit.

Comments

By default the cell size is selected in accordance with user defined parameters. The parameters can be set using the IEaxGridAdjustSettings.MaxRowsInCell and IEaxGridAdjustSettings.MinVisibleDataColumns properties.

Fore Example

To execute the example, add a link to the Express system assembly. This example requires that the repository contains an express report and a form. Place on this form a button with the identifier Button1, a TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1, used as a data source for the TabSheetBox component.

Press the button to start executing this example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Analyzer: IEaxAnalyzer;
    EaxGrid: IEaxGrid;
    AdjustSettings: IEaxGridAdjustSettings;
Begin
    UiErAnalyzer1.Active := True;
    Analyzer := UiErAnalyzer1.ErAnalyzer;
    EaxGrid := Analyzer.Grid;
    AdjustSettings := EaxGrid.AdjustSettings;
    Analyzer.BeginUpdate;
    AdjustSettings.Mode := EaxAdjustMode.Auto;
    AdjustSettings.MinVisibleDataColumns := 2;
    AdjustSettings.MaxRowsInCell := 3;
    Analyzer.EndUpdate;
End Sub Button1OnClick;

After executing this example, cell size autofit is enabled for the express report table: maximum allowed rows in a cell - 3, minimum number of data area columns - 2. See below an example of a report with the specified autofit parameters:

Fore.NET Example

To execute the example, add a link to the Express system assembly. This example requires that the repository contained an express report and a form. Place on this form a button with the identifier button1, a TabSheetBoxNet component and the UiErAnalyzerNet component named UiErAnalyzerNet1, used as a data source for the TabSheetBoxNet component.

Sub button1_Click(sender: System.Object; e: System.EventArgs);
    Var
        Analyzer: UiErAnalyzer;
        EaxGrid: IEaxGrid;
        AdjustSettings: IEaxGridAdjustSettings;
    Begin
        UiErAnalyzerNet1.Active := True;
        Analyzer := UiErAnalyzerNet1.ErAnalyzer;
        EaxGrid := Analyzer.ErAnalyzer.Grid;
        AdjustSettings := EaxGrid.AdjustSettings;
        Analyzer.ErAnalyzer.BeginUpdate();
        AdjustSettings.Mode := EaxAdjustMode.eamAuto;
        AdjustSettings.MinVisibleDataColumns := 2;
        AdjustSettings.MaxRowsInCell := 3;
        Analyzer.ErAnalyzer.EndUpdate();
    End Sub;

After executing this example, cell size autofit is enabled for the express report table: maximum allowed rows in a cell - 3, minimum number of data area columns - 2. See below an example of a report with the specified autofit parameters:

See also:

IEaxGrid