From cdccf7d33bd09df0ded5be34407ddf3e1bfb80be Mon Sep 17 00:00:00 2001 From: Hendrik Peilke <143817985+hendrikpeilke@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:09:47 +0100 Subject: [PATCH] [DataGrid] Fix right column group header border with virtualization (#15470) Co-authored-by: Kenan Yusuf --- .../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} /> );