-
Notifications
You must be signed in to change notification settings - Fork 143
Modifying Data
Chuck Danielsson edited this page Nov 7, 2017
·
1 revision
Hypergrid 2.0.2
var dataModel = myGrid.behavior.dataModel;
dataModel.setValue(x, y, value)
The X coordinate of the target cell
The Y coordinate of the target cell
The value to update
The upper left data cell represents the origin.
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.