diff --git a/packages/x-data-grid/src/components/cell/GridCell.tsx b/packages/x-data-grid/src/components/cell/GridCell.tsx index 3760b113a261f..f81ba9e89e3d5 100644 --- a/packages/x-data-grid/src/components/cell/GridCell.tsx +++ b/packages/x-data-grid/src/components/cell/GridCell.tsx @@ -368,6 +368,10 @@ const GridCell = React.forwardRef(function GridCe if (rowSpan > 1) { cellStyle.height = `calc(var(--height) * ${rowSpan})`; cellStyle.zIndex = 5; + + if (isLeftPinned || isRightPinned) { + cellStyle.zIndex = 6; + } } return cellStyle;