From e5a9ee0fa13a7566b9be98a45c9f32bd7763d3fd Mon Sep 17 00:00:00 2001 From: Hendrik Peilke Date: Mon, 18 Nov 2024 14:10:23 +0100 Subject: [PATCH] [DataGrid] Fix right column group header border with virtualization --- .../src/hooks/features/columnHeaders/useGridColumnHeaders.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-data-grid/src/hooks/features/columnHeaders/useGridColumnHeaders.tsx b/packages/x-data-grid/src/hooks/features/columnHeaders/useGridColumnHeaders.tsx index ee5325a7ad5b..d72882be1754 100644 --- a/packages/x-data-grid/src/hooks/features/columnHeaders/useGridColumnHeaders.tsx +++ b/packages/x-data-grid/src/hooks/features/columnHeaders/useGridColumnHeaders.tsx @@ -464,7 +464,7 @@ export const useGridColumnHeaders = (props: UseGridColumnHeadersProps) => { pinnedPosition={pinnedPosition} style={style} indexInSection={indexInSection} - sectionLength={rowStructure.length} + sectionLength={visibleColumnGroupHeader.length} gridHasFiller={gridHasFiller} /> );