From 5b252559c7376c23a3a6a66e95e7f05e14dda89e Mon Sep 17 00:00:00 2001 From: xiaoy312 Date: Thu, 14 Nov 2024 12:43:25 -0500 Subject: [PATCH 1/2] fix(DataGrid): not displaying cells from last columns when resized from scrolled state (cherry picked from commit 9d63dc2e4a1269fff8d8c7ebf7d89c60c17d168d) --- .../DataGrid/DataGridColumns.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CommunityToolkit.WinUI.UI.Controls.DataGrid/DataGrid/DataGridColumns.cs b/CommunityToolkit.WinUI.UI.Controls.DataGrid/DataGrid/DataGridColumns.cs index 1e781019616..e15af032342 100644 --- a/CommunityToolkit.WinUI.UI.Controls.DataGrid/DataGrid/DataGridColumns.cs +++ b/CommunityToolkit.WinUI.UI.Controls.DataGrid/DataGrid/DataGridColumns.cs @@ -1245,6 +1245,14 @@ private bool ComputeDisplayedColumns() _horizontalOffset -= GetEdgedColumnWidth(dataGridColumn); dataGridColumn = this.ColumnsInternal.GetPreviousVisibleScrollingColumn(dataGridColumn); } + + if (_horizontalOffset == 0 && cx < displayWidth) + { + // if the columns have been scrolled, and all visible columns are fully rendered in the available space, + // then HorizontalAdjustment needs to be updated so that DataGridCellsPresenter.ShouldDisplayCell + // don't hide columns based on the old value. + HorizontalAdjustment = displayWidth - cx; + } } // third try to partially scroll in first scrolled off column From c90b0561bb7fac7c62133cdbae45d695b54ebee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Laban?= Date: Mon, 18 Nov 2024 09:06:24 -0500 Subject: [PATCH 2/2] chore: Remove unused feed --- nuget.config | 1 - 1 file changed, 1 deletion(-) diff --git a/nuget.config b/nuget.config index f18ab1c2571..37606be13ed 100644 --- a/nuget.config +++ b/nuget.config @@ -4,7 +4,6 @@ -