Namespace Nox.Grid.WinForms
Classes
- NoxConditionalFormat
Conditional formatting rule. Example: red background when the quantity column is greater than 100.
NoxGrid1.ConditionalFormats.Add("colQty", NoxConditionOperator.GreaterThan, "100", Color.MistyRose). Rules are evaluated from the top; the colors and bold of the first matching rule win (StopIfTrue skips the remaining rules).
- NoxConditionalFormatCollection
Conditional format collection (rules higher in the list take precedence)
- NoxConditionalFormatConverter
Designer serialization: empty constructor + changed properties only (InstanceDescriptor incomplete → property assignment code)
- NoxDataPropertyNameConverter
DataPropertyName property grid list: field names of the grid's data source
- NoxExportOptions
Export settings
- NoxFindOptions
Find and replace settings
- NoxGrid
Nox custom-drawn grid. Only the visible rows and columns are drawn. Supports unbound (Cells), bound (DataSource = DataTable, BindingSource, IList) and virtual (INoxVirtualDataSource) modes.
- NoxGridBindingCompleteEventArgs
DataBindingComplete: binding finished (columns exist and rows are filled).
- NoxGridBook
Workbook control that switches between multiple sheets (one NoxGrid each) with tabs at the bottom.
book.Sheets.Add("Orders"),book.ActiveGrid,book.ExportToExcel("orders.xlsx")(one Excel sheet per sheet).
- NoxGridButtonColumn
Button column. Clicking it raises the grid's CellButtonClick event.
- NoxGridCell
A single cell
- NoxGridCellCancelEventArgs
Data for cell events that can be cancelled (CellBeginEdit and others).
- NoxGridCellCollection
Cell access. C#
grid.Cells[0, 0].Value, VBgrid.Cells(0, 0).Value. Cell objects are not created in advance; each access returns a lightweight proxy object.
- NoxGridCellEventArgs
Data for cell events (row, column and, for CellValueChanged, the reason).
- NoxGridCellFormattingEventArgs
Adjustment just before a cell is displayed (conditional formatting).
- NoxGridCellMouseEventArgs
Mouse event on a cell (DataGridView's DataGridViewCellMouseEventArgs). X and Y are relative to the cell. Column header: RowIndex = -1. Row header: ColumnIndex = -1. Top-left corner: both -1.
- NoxGridCellPaintingEventArgs
Custom cell drawing. Handled = True stops the grid from drawing the cell content (text and boxes).
- NoxGridCellPastingEventArgs
CellPasting: one cell is about to get a pasted value. Cancel skips it; Value can be changed.
- NoxGridCellRange
Cell range.
grid.Cells[0, 0, 2, 3].BackColor = Color.Yellow,.Merge(),.Value = 0. Rows and columns are by Columns index, inclusive on both ends.
- NoxGridCellToolTipTextNeededEventArgs
Tooltip text for a cell or column header (RowIndex = -1 for the header).
- NoxGridCellValidatingEventArgs
Validation before an edit is committed. Cancel = True keeps editing.
- NoxGridCheckBoxColumn
Check box column. Values are Boolean by default; TrueValue/FalseValue allow values such as "Y"/"N".
- NoxGridColumn
Text column of NoxGrid (the base of all columns). Because it is a Component, the designer creates a field for each column (e.g.
colCode), and it can be selected, edited and undone in the property grid.
- NoxGridColumnCollection
NoxGrid column collection. The designer serializes it with AddRange.
- NoxGridColumnEventArgs
Data for column events.
- NoxGridColumnHeaderPaintingEventArgs
Custom column header drawing. Handled = True skips the default header content (text, sort glyph, filter button).
- NoxGridComboBoxColumn
Combo box column. Values are picked from a list when editing.
- NoxGridComboBoxItemCollection
Combo box column list item
- NoxGridComboItemsEventArgs
CellComboItemsNeeded: fill Items with the list for this cell before the drop-down opens.
- NoxGridDataErrorEventArgs
Value conversion or update failed.
- NoxGridDateColumn
Date column: centered, format yyyy-MM-dd; edited value is DateTime.
- NoxGridEditingControlShowingEventArgs
Data for EditingControlShowing: the edit box about to be shown.
- NoxGridFooterValueEventArgs
FooterValueNeeded: change Value to show your own footer value (e.g. a ratio of two sums)
- NoxGridHeaderCheckEventArgs
HeaderCheckChanging / HeaderCheckChanged: the header check box of a check box column was clicked.
- NoxGridHitTestInfo
Hit test result
- NoxGridImageColumn
Image column. Draws the image if the value is an Image, Icon or byte() (image file contents); for a number or text, draws the ImageList image with that index or key. ShowText = True also writes the value text to the right of the image (status icon + "Done").
- NoxGridLabelColumn
Label column: a read-only text column that only displays values (no edit box opens). The grid's ReadOnlyBackColor and ReadOnlyForeColor can make it look different from editable cells.
- NoxGridNumberColumn
Number column: right-aligned; edited value is decimal (can be changed with ValueType).
- NoxGridPastedEventArgs
Pasted: the paste finished (once per paste).
- NoxGridProgressColumn
Progress bar column. Draws a bar proportional to the numeric value between Minimum and Maximum (default 0 to 100). Values are set from code (no user editing).
- NoxGridRow
A single row. Values are accessed as
row["colCode"]orrow[0].
- NoxGridRowCancelEventArgs
Data for row events that can be cancelled (UserDeletingRow).
- NoxGridRowCollection
Row collection. Use it like
grid.Rows.Add("S001", 10, DateTime.Today),grid.Rows.RemoveAt(3),grid.Rows[3].Height = 40. In bound mode, rows are added to and removed from the data source.
- NoxGridRowEventArgs
DefaultValuesNeeded: put default values into the new row (e.Row("col") = value).
- NoxGridRowsEventArgs
Rows added or removed: RowIndex is the first row, RowCount the number of rows.
- NoxGridScrollEventArgs
Scroll position change. Vertical: rows scrolled past the frozen rows. Horizontal: px offset.
- NoxGridSheet
A sheet in the workbook. Holds one NoxGrid (Grid).
- NoxGridSheetCollection
Sheet collection. Add, Insert, Remove, find by name.
- NoxGridSortCompareEventArgs
SortCompare: the app compares two cells while the grid sorts (unbound grid). Set SortResult and Handled = True. As in DataGridView, return the result for ascending order; the grid reverses it for a descending sort. Return 0 for equal values to keep their current order (in both directions).
- NoxGridSortingEventArgs
Header sort request. Cancel = True prevents the grid from sorting.
- NoxGridSpan
Explicit merged area (by Columns index)
- NoxGridValidationError
A single validation result
- NoxGridValidationException
Input validation failed (the Exception of the DataError event).
- NoxImportOptions
Import settings (Excel .xlsx, CSV)
- NoxPrintSettings
Print settings
- NoxRowGroup
Row group (collapse/expand). The summary row is the row directly below the group (as in Excel).
- NoxValueList
Value list (column AllowedValues)
Enums
- NoxBorders
Cell border sides (can be combined)
- NoxCheckReadOnlyAppearance
How a read-only check box cell is drawn
- NoxColumnAutoSizeMode
Column width auto-fit mode
- NoxConditionOperator
Conditional format condition
- NoxDeleteKeyAction
What the Delete key does
- NoxFooterFunction
What the footer (summary) row shows for a column
- NoxGridAutoSizeRowsMode
When row heights fit their content automatically
- NoxGridChangeReason
Why a cell value changed (CellValueChanged e.Reason)
- NoxGridColorScheme
Predefined color schemes
- NoxGridColumnSortMode
Header sort mode
- NoxGridEditMode
Edit mode
- NoxGridEditStartReason
What opened the edit box (NoxGridCellCancelEventArgs.StartReason in CellBeginEdit)
- NoxGridEditTrigger
How the user opens the edit box in a column (NoxGridColumn.EditTrigger)
- NoxGridExportable
Whether a column goes to Excel and CSV exports
- NoxGridHitTestType
Kind of HitTest result
- NoxGridReadOnlyMode
How read-only cells react when the user tries to edit them (NoxGridColumn.ReadOnlyMode)
- NoxGridSelectionMode
Selection mode
- NoxGridSortCycle
What clicking a column header cycles through
- NoxGridUserDataChanges
Which ways of changing data the user gets (NoxGrid.UserDataChanges)
- NoxHeaderAlignment
Header text alignment
- NoxHeaderTextFit
What a one-line column header does when its text is wider than the column (NoxGrid.HeaderTextFit)
- NoxImageLayout
Image fit mode
- NoxImeMode
IME (input method) state of the cell editor
- NoxMergeMode
Merges vertically when the same value repeats within a column.
- NoxProgressText
Progress text
- NoxSortCompareMode
How the grid compares text values when it sorts a column.
- NoxSortOrder
Sort indicator
- NoxSubtotalFunction
Subtotal function
- NoxVerticalAlignment
Vertical alignment