NoxGrid1(0, "colName") = "Emma Hall"
Dim name = NoxGrid1(0, "colName")
NoxGrid1.SetText(0, "colQty", "1,234") ' text → column type (FormatException if it cannot be converted)
Dim text = NoxGrid1.GetText(0, "colQty") ' text as displayed
NoxGrid1.SetValues(0, 0, New Object(,) {{"a", 1}, {"b", 2}})
noxGrid1[0, "colName"] = "Emma Hall";
var name = noxGrid1[0, "colName"];
noxGrid1.SetText(0, "colQty", "1,234");
var text = noxGrid1.GetText(0, "colQty");
noxGrid1.SetValues(0, 0, new object[,] { { "a", 1 }, { "b", 2 } });
grid.setValue(0, 'name', 'Emma Hall');
const name = grid.getValue(0, 'name');
grid.setText(0, 'qty', '1,234'); // TypeError if it cannot be converted
const text = grid.getText(0, 'qty');
grid.setValues(0, 0, [['a', 1], ['b', 2]]);
NoxGrid1.SetFormula(10, "colAmount", "=SUM(D1:D10)")
Dim total = NoxGrid1(10, "colAmount") ' calculated value
NoxGrid1.AllowUserFormulas = True ' users can type =…
NoxFormula.RegisterFunction("VAT", Function(a) Convert.ToDouble(a(0)) * 0.1)
noxGrid1.SetFormula(10, "colAmount", "=SUM(D1:D10)");
var total = noxGrid1[10, "colAmount"];
noxGrid1.AllowUserFormulas = true;
NoxFormula.RegisterFunction("VAT", a => Convert.ToDouble(a[0]) * 0.1);
grid.setFormula(10, 'amount', '=SUM(D1:D10)');
const total = grid.getValue(10, 'amount');
grid.allowUserFormulas = true;
NoxFormula.registerFunction('VAT', (a) => (a[0] as number) * 0.1);
Private Sub NoxGrid1_CellValueChanged(sender As Object, e As NoxGridCellEventArgs) Handles NoxGrid1.CellValueChanged
lblStatus.Text = $"Row {e.RowIndex + 1} changed"
End Sub
// Excel goes through the server package (Nox.Grid.Server)
grid.loadWorkbookData(await (await fetch('/api/import', { method: 'POST', body: form })).json());
await fetch('/api/export', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(grid.toWorkbookData()) });
grid.toCsv(); // CSV without a server
grid.print({ title: 'Lab results' }); // browser printing (can save as PDF)
Common pitfalls
Symptom
Cause / fix
The web grid is not visible
The host element has no height → style="height:500px" or give it a height with flex
A formula shows #REF!
A referenced row, column or sheet was deleted. Formula addresses are one-based and do not count the header row
NoxGrid is missing from the toolbox
Build first, and reference Nox.Grid.Design.dll. After a version change, remove the toolbox item and add it again
Bulk loading is slow
BeginUpdate/EndUpdate, AllowUndo = False, and pause your value-changed handlers
Codes with leading zeros become numbers
Use a text column. Excel/CSV import keeps "00123" as text
Dates show as serial numbers
Use a date column (kind: 'date', NoxGridDateColumn) or a format such as yyyy-MM-dd
The grid UI text is Korean
Desktop: Korean when the Windows display language or regional format is Korean; force it with NoxGridText.Language = NoxGridLanguage.English. Web: locale: 'en' or setLocale('en')