问题
I have a AG-grid set up with autoGroup and other column groups. I am able to set the group names on the other columns but not the first column, which is the auto group. How do I access the first cell? In the plunker example, the cell above 'test'.
https://plnkr.co/edit/LgOOxMJpGwDcMdIq4Y5j?p=preview
<AgGridReact
// autoGroupColumnDef={this.state.columnDefs}
columnDefs={this.state.columnDefs}
frameworkComponents={this.state.frameworkComponents}
rowData={this.state.rowData}
defaultColDef={this.state.defaultColDef}
onGridReady={this.onGridReady}
rowGroup
autoGroupColumnDef={{
headerName: 'test',
width: 100,
}}
/>
| cant customize | group1 name |
| custom header | column1 | column2 |
autoGroupColumnDef doesn't seem to work the same as the regular columnDef
来源:https://stackoverflow.com/questions/56385704/how-to-customize-autogroupcolumndefs-headergroup-cell