In ag-grid master detail functionality, i added checkboxes to detail grid when i check row in the first detail grid and then scroll to bottom grid and expand/collapse that grid, the checkbox in first grid is gone (not persisted). https://plnkr.co/edit/UeWohlz76GM7B4L80n91?p=preview
<AgGridReact
columnDefs={this.state.columnDefs}
masterDetail={true}
detailCellRendererParams={this.state.detailCellRendererParams}
detailRowHeight={this.state.detailRowHeight}
defaultColDef={this.state.defaultColDef}
onGridReady={this.onGridReady}
getRowHeight={this.state.getRowHeight}
groupDefaultExpanded={1}
rowData={this.state.rowData}
/>
Checkbox values should be persisted in the first(top grid).
onCellValueChanged
in colDef for the field and change appropriate value in your state to retain. – Rikin