[!Note] Please note that this control has been deprecated and replaced with the Grid component, and as such, we recommend migrating to that control. This will not be receiving any new features, bug fixes will be deprioritized. For help or questions on migrating your codebase to the Data Grid, please contact support.
Web Components Row Pinning
The Ignite UI for Web Components Data Table / Data Grid allows Row Pinning by either using keys or the underlying data source items. When a row is pinned, it will be duplicated at the top of the web-components data grid and remain fixed there with light gray background and its actual row will be rendered with low opacity.
Web Components Row Pinning Example
You can pin rows in the Web Components data grid by adding the target row’s underlying data item to the pinnedItems collection of the Web Components grid.
Code Snippet
<igc-data-grid id="grid"
width="100%"
height="100%">
</igc-data-grid>
let grid1 = (document.getElementById("grid") as IgcDataGridComponent);
grid1.dataSource = data;
grid1.pinnedItems.add(data[2]);
grid1.pinnedItems.add(data[4]);