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.
- C#
- VB.NET
public class SalTableRow
Public Class SalTableRow
Example:
SalTableRow row = table.Rows[0];
row.SetFlags(Sys.ROW_Selected, true);
int contextRow = row.ContextRow;
Properties
ContextRow
Int32: Gets the SAL context-row index translated from the current grid-row position.
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.
Enabled
Boolean: Gets or sets whether the grid row is writable.
The value is the inverse of the underlying ReadOnly property.
Fetched
Boolean: Gets or sets whether this row has been fetched from its data source.
Throws:
- InvalidOperationException True is assigned when the row is already marked fetched.
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.
Grid
DataGridView: Gets the Wisej grid containing this row.
GridRow
DataGridViewRow: Gets the underlying Wisej grid row.
Item(index)
SalTableColumn: Sets this row as the table context and gets a column by collection index.
Item(name)
SalTableColumn: Sets this row as the table context and finds a column by its exact control name.
Item(column)
SalTableColumn: Sets this row as the context for an existing column in the same table.
ParentTable
SalTableWindow: Gets the SAL table that owns the row.
Selected
Boolean: Gets or sets whether the underlying grid row is selected.
Tag
Object: Gets or sets application data associated with this row wrapper.
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
IsModified(col)
Checks the stored modification bit for a column.
| Parameter | Type | Description |
|---|---|---|
| col | Int32 | The nonnegative column modification-bit index. |
Returns: Boolean. The bit value, or false when no modification map exists or the index exceeds its length.
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.
SetFlags(flags, on)
Enables or clears selected row flags and applies affected grid state.
| Parameter | Type | Description |
|---|---|---|
| flags | Int32 | The ROW_* bit mask. |
| on | Boolean | True to set the bits; false to clear them. |
SetModified(col, on)
Sets the modification bit for a column and marks the row edited when any bit remains set.
| Parameter | Type | Description |
|---|---|---|
| col | Int32 | The nonnegative grid-column slot; negative values are ignored. |
| on | Boolean | The new modification state. |
Resizes the bit array to the grid-column count plus one. Clearing the last bit does not itself clear ROW_Edited.