closest I've found is to use the onFilterChange event
I tried it but to no avail
I did it like this:
constructor(props){
super(props){
...
}
this.viewRows = [],
this.viewRowsLength = 0
}
renderCode = ({ value, row, rowIndex }) =>{
if (rowIndex < this.viewRowsLength) this.viewRows = this.viewRows.slice(0, rowIndex + 1);
this.viewRows[rowIndex] = row;
this.viewRowsLength = rowIndex;
return value
};
<DataGrid>
...
<GridColumn
render = { this.renderCode }
field="code" title="Code" width="10%"/>
...
...
<DataGrid/>
But maybe possible to make it more simple?