Skip to content

Modifying Data

Chuck Danielsson edited this page Nov 7, 2017 · 1 revision

Modify A Specific Value

Hypergrid 2.0.2

var dataModel = myGrid.behavior.dataModel;
dataModel.setValue(x, y, value)

Parameters

x

The X coordinate of the target cell

y

The Y coordinate of the target cell

value

The value to update

The upper left data cell represents the origin.

Add Records

var dataModel = myGrid.behavior.dataModel;
dataModel.dataSource.data.push(newRow);

//Draw update

myGrid.behaviorChanged();

newRow is an object of the same shape as the other data rows.