Skip to main content

SalTableRow

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.50 (5.0.0.0)

Represents a SAL table row, its state flags, and context-sensitive access to column values.

public class SalTableRow

Reading a column indexer changes the parent table context row.

Example:

void MarkSelected(PPJ.Runtime.Windows.SalTableRow row)
{
row.Selected = true;
row.Tag = "Reviewed";
}

Properties​

Instance member ContextRow​

Int32: Gets the SAL context-row index translated from the current grid-row position.

Instance member Deleted​

Boolean: Gets or sets the logical deletion state, hiding deleted rows and repositioning the grid to a valid row.

Deletion can be refused for a header row or when an active editor cannot finish.

Instance member Enabled​

Boolean: Gets or sets whether the underlying grid row allows editing.

Instance member Fetched​

Boolean: Gets or sets whether this row has been fetched from its data source.

Throws:

Instance member Flags​

Int32: Gets SAL row flags synchronized from the grid state or replaces the flags and applies their effects.

Instance member Grid​

C1FlexGrid: Gets the ComponentOne grid containing the row.

Instance member GridRow​

Row: Gets the underlying ComponentOne grid row.

Instance member Item(index)​

SalTableColumn: Sets this row as the table context and gets a column by collection index.

Instance member Item(name)​

SalTableColumn: Sets this row as the table context and finds a column by its exact control name.

Instance member Item(column)​

SalTableColumn: Sets this row as the context for an existing column in the same table.

Instance member ParentTable​

SalTableWindow: Gets the SAL table that owns the row.

Instance member Selected​

Boolean: Gets or sets whether the underlying grid row is selected.

Instance member Tag​

Object: Gets or sets application data associated with this row wrapper.

Instance member Visible​

Boolean: Gets or sets the grid row visibility and refreshes fetched rows.

Hiding clears selection. Showing checks header and active-editor restrictions before proceeding.

Methods​

Instance member IsModified(col)​

Checks the stored modification bit for a column.

ParameterTypeDescription
colInt32The nonnegative column modification-bit index.

Returns: Boolean. The bit value, or false when no modification map exists or the index exceeds its length.

Instance member Remove()​

Removes the grid row after any active editor successfully finishes, then refreshes virtual rows and current-row positioning.

Fixed header rows and rows blocked by editor validation are retained.

Instance member SetFlags(flags, on)​

Enables or clears selected SAL row flags and applies their effects to the grid row.

ParameterTypeDescription
flagsInt32The Sys.ROW_* flags to change.
onBooleanTrue to set the flags; false to clear them.

Instance member SetModified(col, on)​

Updates a column modification bit and marks the row edited when any column remains modified.

ParameterTypeDescription
colInt32The modification-bit index; negative values are ignored.
onBooleanThe desired modification state.

Clearing the last modified bit does not automatically clear ROW_Edited.