GetTable: IEaxGrid;
The GetTable property returns a table.
To determine a data source for the TableWidget component, use the ITableWidget.Source property.
Executing the example requires a form with the following components:
Button with the Button1 identifier.
UiErAnalyzer with the UiErAnalyzer1 identifier.
NavigationBar with the NavigationBar1 identifier.
TableWidget with the TableWidget1 identifier.
Specify an express report as a data source for the UiErAnalyzer1 component.
This example is a handler of the OnClick event for the Button1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
TSourse: ITableSource;
Grid: IEaxGrid;
ColumnsCount, RowsCount: Integer;
Begin
TSourse := TableWidget1.Source;
Grid := TSourse.GetTable As IEaxGrid;
ColumnsCount := Grid.TabSheet.ColumnsCount-1;
RowsCount := Grid.TabSheet.RowsCount-1;
Text := "ID: " + Grid.Id + ", Column name: "
+ Grid.ColumnName(ColumnsCount)+ ", Row name: " + Grid.RowName(RowsCount);
End Sub Button1OnClick;
Clicking the button displays information about the table in the form title, the table is used as a data source for the TableWidget1 component.
See also: