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 grid and remain fixed there with light gray background and its actual row will be rendered with low opacity.

Demo

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-live-grid id="grid"
    width="100%"
    height="100%">
    </igc-live-grid>
let grid1 = (document.getElementById("grid") as IgcLiveGridComponent);
grid1.dataSource = data;
grid1.pinnedItems.add(data[2]);
grid1.pinnedItems.add(data[4]);