Skip to main content
Version: 2025

SalTableRow

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.50 (5.0.0.0)

Wraps a grid row with SAL flags, per-column modification state, and table context.

public class SalTableRow

Example:

SalTableRow row = table.Rows[0];
row.SetFlags(Sys.ROW_Selected, true);
int contextRow = row.ContextRow;

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.

Changing the value updates grid visibility, fetches the visible range, and moves the current cell to a valid row or clears it. Selection events are suppressed during the update.

Instance member Enabled​

Boolean: Gets or sets whether the grid row is writable.

The value is the inverse of the underlying ReadOnly property.

Instance member Fetched​

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

Throws:

Instance member Flags​

Int32: Gets or replaces the stored SAL row flags.

Reading synchronizes flags with grid state. Assignment applies the bits present in the new mask to visibility, selection, modification state, and row-header indicators.

Instance member Grid​

DataGridView: Gets the Wisej grid containing this row.

Instance member GridRow​

DataGridViewRow: Gets the underlying Wisej 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()​

Marks the row deleted, removes it from the grid, and fetches rows to fill the visible range.

Suppresses selection events during removal and moves the current cell away from a hidden/deleted row when needed.

Instance member SetFlags(flags, on)​

Enables or clears selected row flags and applies affected grid state.

ParameterTypeDescription
flagsInt32The ROW_* bit mask.
onBooleanTrue to set the bits; false to clear them.

Instance member SetModified(col, on)​

Sets the modification bit for a column and marks the row edited when any bit remains set.

ParameterTypeDescription
colInt32The nonnegative grid-column slot; negative values are ignored.
onBooleanThe new modification state.

Resizes the bit array to the grid-column count plus one. Clearing the last bit does not itself clear ROW_Edited.