Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的反应应用程序中使用 ag-grid-react 并在表格中固定了一行。我想更新固定行中的列值。怎么做?
要将固定的行放入网格中,请设置pinnedTopRowData或pinnedBottomRowData以与将普通数据设置到rowData.
pinnedTopRowData
pinnedBottomRowData
rowData
创建网格后,您可以通过调用api.setPinnedTopRowData(rows)和更新固定的行setPinnedBottomRowData(rows)。
api.setPinnedTopRowData(rows)
setPinnedBottomRowData(rows)