Table of Contents

Class NoxGridRow

Namespace
Nox.Grid.WinForms
Assembly
Nox.Grid.WinForms.dll

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

Color

Bold

Bold text in the row.

public bool Bold { get; set; }

Property Value

bool

DataBoundItem

Bound mode: the data source object of this row (DataRowView, list item). Null when not bound.

public object DataBoundItem { get; }

Property Value

object

Displayed

Gets whether the row is shown on screen (considering both hidden and filtered state).

public bool Displayed { get; }

Property Value

bool

FilteredOut

Gets whether the row is hidden because it does not match the filter.

public bool FilteredOut { get; }

Property Value

bool

ForeColor

Text color of the row (Color.Empty: none).

public Color ForeColor { get; set; }

Property Value

Color

Height

Row height (px at 96 DPI). 0 uses the grid RowHeight.

public int Height { get; set; }

Property Value

int

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

int

IsNewRow

Whether this is the new-row slot at the bottom (AllowUserToAddRows).

public bool IsNewRow { get; }

Property Value

bool

IsRemoved

Whether the row was removed (Index = -1).

public bool IsRemoved { get; }

Property Value

bool

this[int]

Value of the cell in this row, by column index.

public object this[int columnIndex] { get; set; }

Parameters

columnIndex int

Property Value

object

this[string]

Value of the cell in this row, by column name.

public object this[string columnName] { get; set; }

Parameters

columnName string

Property Value

object

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

object

ReadOnly

Makes the whole row read-only.

public bool ReadOnly { get; set; }

Property Value

bool

Selected

Whether the row is selected.

public bool Selected { get; }

Property Value

bool

Tag

Any data the app keeps with the row.

public object Tag { get; set; }

Property Value

object

Visible

Row visibility (independent of filtering)

public bool Visible { get; set; }

Property Value

bool

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

values object[]