NoxGrid1(0, "colName") = "홍길동"
Dim name = NoxGrid1(0, "colName")
NoxGrid1.SetText(0, "colQty", "1,234") ' 글자 → 열 형식 (실패하면 FormatException)
Dim text = NoxGrid1.GetText(0, "colQty") ' 화면에 보이는 글자
NoxGrid1.SetValues(0, 0, New Object(,) {{"a", 1}, {"b", 2}})
noxGrid1[0, "colName"] = "홍길동";
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', '홍길동');
const name = grid.getValue(0, 'name');
grid.setText(0, 'qty', '1,234'); // 바꿀 수 없으면 TypeError
const text = grid.getText(0, 'qty');
grid.setValues(0, 0, [['a', 1], ['b', 2]]);
// 객체 배열 연결이 가장 빠르다 (10만 행 × 20열 약 23ms)
grid.setData(rows); // 열의 field 로 읽고 쓴다
// 또는 2차원 배열
grid.allowUndo = false;
grid.rowCount = data.length;
grid.setValues(0, 0, data); // 안에서 beginUpdate/endUpdate
grid.allowUndo = true;
NoxGrid1.SetFormula(10, "colAmount", "=SUM(D1:D10)")
Dim total = NoxGrid1(10, "colAmount") ' 계산 결과
NoxGrid1.AllowUserFormulas = True ' 사용자가 =… 입력
NoxFormula.RegisterFunction("부가세", 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("부가세", 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('부가세', (a) => (a[0] as number) * 0.1);
Private Sub NoxGrid1_CellValueChanged(sender As Object, e As NoxGridCellEventArgs) Handles NoxGrid1.CellValueChanged
lblStatus.Text = $"{e.RowIndex + 1}행 바뀜"
End Sub