B4X Store

ELEVATEUI · B4A · XUI

UITable

Display and operate on structured rows and columns.

78 modules 1,780 APIs

Navigation & onboarding

What it solves

Display and operate on structured rows and columns.

Animated conceptual demonstration, not an exact Android control screenshot.

46 methods0 Designer4 events

When to use this module

In a multi-screen application, connect every menu action to a real destination and preserve the active selection.

Before integrating, examine its methods, events and Designer options.

B4A integration examples

Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.

Practical tutorial awaiting verification

The public API, events and properties remain available. An isolated initialization is not presented as a full example; a tutorial will be added after a functional sequence is documented.

Public methods reference

46 audited signatures

Public Sub Initialize(CallbackModule As Object, EventName As String)

Prepare the instance before its other methods.

CallbackModule As ObjectEventName As String
Public Sub getRowHeight As Int

Read the current row height value for validation or UI synchronization.

Returns: Int

Public Sub setEmptyMessageTable(message As String)

Update empty message table at runtime when this setting changes.

message As String
Public Sub setGridColor(color As Int)

Update grid color at runtime when this setting changes.

color As Int
Public Sub getGridColor As Int

Read the current grid color value for validation or UI synchronization.

Returns: Int

Public Sub setFontColor(color As Int)

Update font color at runtime when this setting changes.

color As Int
Public Sub getFontColor As Int

Read the current font color value for validation or UI synchronization.

Returns: Int

Public Sub setHeaderBackgroundColor(color As Int)

Update header background color at runtime when this setting changes.

color As Int
Public Sub setHeaderFontColor(color As Int)

Update header font color at runtime when this setting changes.

color As Int
Public Sub getHeaderFontColor As Int

Read the current header font color value for validation or UI synchronization.

Returns: Int

Public Sub setTableColor(color As Int)

Update table color at runtime when this setting changes.

color As Int
Public Sub getTableColor As Int

Read the current table color value for validation or UI synchronization.

Returns: Int

Public Sub ThemeColor(PrimaryColor As Int, SecundaryColor As Int, SelectColor As Int)

Use ThemeColor for its named operation; follow its exact signature.

PrimaryColor As IntSecundaryColor As IntSelectColor As Int
Public Sub ClearAll

Use ClearAll for its named operation; follow its exact signature.

Public Sub SetColumnsWidths(Widths() As Int)

Use SetColumnsWidths for its named operation; follow its exact signature.

Widths( As unknown

Returns: Int)

Public Sub SetColumnWidth(Index As Int, Width As Int)

Use SetColumnWidth for its named operation; follow its exact signature.

Index As IntWidth As Int
Public Sub setRowHeight(height As Int)

Update row height at runtime when this setting changes.

height As Int
Public Sub AddToView(view As B4XView, Left As Int, Top As Int, Width As Int, Height As Int)

Use AddToView for its named operation; follow its exact signature.

view As B4XViewLeft As IntTop As IntWidth As IntHeight As Int
Public Sub AddRow(Values() As String)

Use AddRow for its named operation; follow its exact signature.

Values( As unknown

Returns: String)

Public Sub AddEmptyRow

Use AddEmptyRow for its named operation; follow its exact signature.

Original catalog note: Adds a blank row with one cell for every current column.

Public Sub ColumnCount As Int

Use ColumnCount for its named operation; follow its exact signature.

Original catalog note: Returns the number of columns currently defined in the table.

Returns: Int

Public Sub Resize(Width As Int, Height As Int)

Use Resize for its named operation; follow its exact signature.

Original catalog note: Resizes the existing table views while preserving rows and scroll state.

Width As IntHeight As Int
Public Sub ShowAllRows

Use ShowAllRows for its named operation; follow its exact signature.

Public Sub SetDisplayedRows(Rows As List, Filtered As Boolean)

Use SetDisplayedRows for its named operation; follow its exact signature.

Original catalog note: Applies a view-only row projection using zero-based source row indices. Underlying data, formulas, and cell access remain indexed by their original rows.

Rows As ListFiltered As Boolean
Public Sub DisplayedRowCount As Int

Use DisplayedRowCount for its named operation; follow its exact signature.

Returns: Int

Public Sub GetDisplayedSourceRow(DisplayPosition As Int) As Int

Use GetDisplayedSourceRow for its named operation; follow its exact signature.

DisplayPosition As Int

Returns: Int

Public Sub GetColumnName(Index As Int) As String

Use GetColumnName for its named operation; follow its exact signature.

Index As Int

Returns: String

Public Sub SetHeaderImage(Col As Int, Image As Bitmap, Width As Int, Height As Int)

Use SetHeaderImage for its named operation; follow its exact signature.

Original catalog note: Adds or replaces an image shown beside a column title. Pass 0 for Width or Height to use a compact size.

Col As IntImage As BitmapWidth As IntHeight As Int
Public Sub ClearHeaderImage(Col As Int)

Use ClearHeaderImage for its named operation; follow its exact signature.

Original catalog note: Removes the image beside a column title.

Col As Int
Public Sub GetCellContentPanel(Col As Int, Row As Int) As B4XView

Use GetCellContentPanel for its named operation; follow its exact signature.

Original catalog note: Returns the full-cell transparent host used to place multiple ElevateUI controls in a cell. Child coordinates are relative to this cell. The host follows its row while the table scrolls.

Col As IntRow As Int

Returns: B4XView

Public Sub AddCellElement(Col As Int, Row As Int, Element As B4XView, Left As Int, Top As Int, Width As Int, Height As Int)

Use AddCellElement for its named operation; follow its exact signature.

Original catalog note: Adds an unattached view into a cell. Call repeatedly to place multiple controls in one cell.

Col As IntRow As IntElement As B4XViewLeft As IntTop As IntWidth As IntHeight As Int
Public Sub SetCellImage(Col As Int, Row As Int, Image As Bitmap, Width As Int, Height As Int)

Use SetCellImage for its named operation; follow its exact signature.

Original catalog note: Adds an image to a cell and reserves space for its text. Other controls can be added with AddCellElement.

Col As IntRow As IntImage As BitmapWidth As IntHeight As Int
Public Sub ClearCellImage(Col As Int, Row As Int)

Use ClearCellImage for its named operation; follow its exact signature.

Original catalog note: Removes the image from a cell and restores centered cell text.

Col As IntRow As Int
Public Sub ClearCellElements(Col As Int, Row As Int)

Use ClearCellElements for its named operation; follow its exact signature.

Original catalog note: Removes all custom controls and images from a cell.

Col As IntRow As Int
Public Sub HideRow(Row As Int)

Use HideRow for its named operation; follow its exact signature.

Row As Int
Public Sub AddColumns(NewColumns() As String)

Use AddColumns for its named operation; follow its exact signature.

NewColumns( As unknown

Returns: String)

Public Sub AddColumn(ColumnName As String)

Use AddColumn for its named operation; follow its exact signature.

ColumnName As String
Public Sub GetValue(Col As Int, Row As Int) As String

Use GetValue for its named operation; follow its exact signature.

Col As IntRow As Int

Returns: String

Public Sub SetValue(Col As Int, Row As Int, Value As String)

Use SetValue for its named operation; follow its exact signature.

Col As IntRow As IntValue As String
Public Sub DeleteRow(RowIndex As Int)

Use DeleteRow for its named operation; follow its exact signature.

Original catalog note: Removes the specified row and keeps the table's selected row and scroll position valid.

RowIndex As Int
Public Sub SelectCell(Col As Int, Row As Int)

Use SelectCell for its named operation; follow its exact signature.

Original catalog note: Selects a cell and scrolls it into view.

Col As IntRow As Int
Public Sub SetFormulaReferenceCells(Cells As List)

Use SetFormulaReferenceCells for its named operation; follow its exact signature.

Original catalog note: Highlights every cell reference in an actively edited formula. Each reference gets a distinct Excel-like outline.

Cells As List
Public Sub JumpToRow(Row As Int)

Use JumpToRow for its named operation; follow its exact signature.

Row As Int
Public Sub LoadTableFromCSV(Dir As String, Filename As String, HeadersExist As Boolean)

Use LoadTableFromCSV for its named operation; follow its exact signature.

Dir As StringFilename As StringHeadersExist As Boolean
Public Sub SaveTableToCSV(Dir As String, Filename As String)

Use SaveTableToCSV for its named operation; follow its exact signature.

Dir As StringFilename As String
Public Sub TableSize As Int

Use TableSize for its named operation; follow its exact signature.

Returns: Int

Designer · 0

No custom Designer properties were found in the audited API.

Public events and how to implement them · 4

Initialize with Me and the event prefix Demo, then add the following handler to your B4A module. Names and arguments come from the library declaration.

CellClick (Col As Int, Row As Int)

Raised when the user taps the control; use it to trigger a real action.

B4A handler signature with Demo prefix

Private Sub Demo_CellClick(Col As Int, Row As Int)
    Log("CellClick")
End Sub
HeaderClick(Col As Int)

Raised when the user taps the control; use it to trigger a real action.

B4A handler signature with Demo prefix

Private Sub Demo_HeaderClick(Col As Int)
    Log("HeaderClick")
End Sub
HeaderSearch(Col As Int)

Event declared by this module. Handle the indicated action in the callback.

B4A handler signature with Demo prefix

Private Sub Demo_HeaderSearch(Col As Int)
    Log("HeaderSearch")
End Sub
FillRange(Fill As UITableFillRange)

Event declared by this module. Handle the indicated action in the callback.

B4A handler signature with Demo prefix

Private Sub Demo_FillRange(Fill As UITableFillRange)
    Log("FillRange")
End Sub

For code-created controls use Initialize(Me, "Demo") when that signature exists; for Designer controls set the event name there. Replace Demo with the actual prefix.

Public fields, constants and types

Public FontSize As FloatPublic Alignment As IntPublic ColumnSeparatorColor As Int = Colors.Gray
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.