Class NoxGridRow
A single row. Values are accessed as row["colCode"] or row[0].
public sealed class NoxGridRow
- Inheritance
-
NoxGridRow
- Inherited Members
Properties
BackColor
Background color of the row (Color.Empty: none).
public Color BackColor { get; set; }
Property Value
Bold
Bold text in the row.
public bool Bold { get; set; }
Property Value
DataBoundItem
Bound mode: the data source object of this row (DataRowView, list item). Null when not bound.
public object DataBoundItem { get; }
Property Value
Displayed
Gets whether the row is shown on screen (considering both hidden and filtered state).
public bool Displayed { get; }
Property Value
FilteredOut
Gets whether the row is hidden because it does not match the filter.
public bool FilteredOut { get; }
Property Value
ForeColor
Text color of the row (Color.Empty: none).
public Color ForeColor { get; set; }
Property Value
Height
Row height (px at 96 DPI). 0 uses the grid RowHeight.
public int Height { get; set; }
Property Value
Index
Current row index. It follows the row when rows are inserted, removed or sorted (and when a bound list is re-sorted). -1 after the row was removed; reading or writing values then throws.
public int Index { get; }
Property Value
IsNewRow
Whether this is the new-row slot at the bottom (AllowUserToAddRows).
public bool IsNewRow { get; }
Property Value
IsRemoved
Whether the row was removed (Index = -1).
public bool IsRemoved { get; }
Property Value
this[int]
Value of the cell in this row, by column index.
public object this[int columnIndex] { get; set; }
Parameters
columnIndexint
Property Value
this[string]
Value of the cell in this row, by column name.
public object this[string columnName] { get; set; }
Parameters
columnNamestring
Property Value
Key
Fixed key of the row (for finding it again with Rows.IndexOfKey). Unbound: any value you set. Bound with grid RowKeyMember: the value of that field (read-only).
public object Key { get; set; }
Property Value
ReadOnly
Makes the whole row read-only.
public bool ReadOnly { get; set; }
Property Value
Selected
Whether the row is selected.
public bool Selected { get; }
Property Value
Tag
Any data the app keeps with the row.
public object Tag { get; set; }
Property Value
Visible
Row visibility (independent of filtering)
public bool Visible { get; set; }
Property Value
Methods
GetValues()
All values in Columns order
public object[] GetValues()
Returns
- object[]
SetValues(params object[])
Sets values in Columns order (if fewer are given, only the leading columns are set).
public void SetValues(params object[] values)
Parameters
valuesobject[]