Show contents 

Express > Express Assembly Interfaces > IEaxGrid > IEaxGrid.RefreshPart

IEaxGrid.RefreshPart

Syntax

RefreshPart([Value: Integer = 0]);

Parameters

Value. The parameter that determines updated table part. As a parameter value, one should specify one of the values of the EaxGridRefreshPart enumeration.

Description

The RefreshPart method refreshes the specified table area.

Example

Executing the example requires a form, a button named Button1 on the form, the LanerBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for LanerBox. A workbook of time series database should be loaded to UiErAnalyzer1.

The example is executed on clicking the button.

Sub Button1OnClick(Sender:Object; Args: IMouseEventArgs);
Var
    Expr: IEaxAnalyzer;
    TableStyle: ITabTableStyle;
    Grid: IEaxGrid;
Begin
    Expr := UiErAnalyzer1.ErAnalyzer;
    Grid := Expr.Grid;
    TableStyle := Grid.Style.TableStyle;
    TableStyle.AssignPredefined(TabTablePredefinedStyle.DarkBlue);
    Grid.RefreshPart(EaxGridRefreshPart.TableStyle);
End Sub Button1OnClick;

After executing the example, alternating style is applied to the workbook table. After that only table style is refreshed.

See also:

IEaxGrid