CommunityToolkit / WindowsCommunityToolkit

The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
https://docs.microsoft.com/windows/communitytoolkit/
Other
5.89k stars 1.38k forks source link

WinUI 3 DataGrid (CommunityToolkit.WinUI.UI.Controls) - Resize of height is not working when user shrink or expand column #4967

Open chiragpandya04 opened 10 months ago

chiragpandya04 commented 10 months ago

Describe the bug

WinUI 3 DataGrid (CommunityToolkit.WinUI.UI.Controls) - Resize of height is not working when user shrink or expand column

image

image

<ctWinUI:DataGrid x:Name="DataGrid" AutoGenerateColumns="False" CanUserSortColumns="True" controls:Grid.Row="1" GridLinesVisibility="All" Sorting="DataGrid_Sorting">

public HomePage() { this.InitializeComponent(); this.Loaded += HomePage_Loaded; } private async void HomePage_Loaded(object sender, RoutedEventArgs e) { DataGrid.ItemsSource = await _dataSource.GetDataAsync(); DataGrid.Columns[0].SortDirection = ctWinUI.DataGridSortDirection.Ascending; DataGrid.RowHeight = double.NaN; } ### Regression _No response_ ### Reproducible in sample app? - [ ] This bug can be reproduced in the sample app. ### Steps to reproduce ```text Already given ``` ### Expected behavior When we have set Wrap data for any column and if user resize (shrink) column and then expand column. data grid is not refreshing its height based on content. hence so many blank spaces. Please refer my both snapshots. ### Screenshots ![image](https://github.com/CommunityToolkit/WindowsCommunityToolkit/assets/42544312/558832fe-28dc-4789-b6e6-9eeb44830b0d) ![image](https://github.com/CommunityToolkit/WindowsCommunityToolkit/assets/42544312/355cedbc-407a-4910-937f-c974e36f7104) ### Windows Build Number - [ ] Windows 10 1809 (Build 17763) - [ ] Windows 10 1903 (Build 18362) - [ ] Windows 10 1909 (Build 18363) - [ ] Windows 10 2004 (Build 19041) - [X] Windows 10 20H2 (Build 19042) - [ ] Windows 10 21H1 (Build 19043) - [ ] Windows 11 21H2 (Build 22000) - [ ] Other (specify) ### Other Windows Build number _No response_ ### App minimum and target SDK version - [ ] Windows 10, version 1809 (Build 17763) - [ ] Windows 10, version 1903 (Build 18362) - [ ] Windows 10, version 1909 (Build 18363) - [X] Windows 10, version 2004 (Build 19041) - [ ] Other (specify) ### Other SDK version _No response_ ### Visual Studio Version 2022 ### Visual Studio Build Number _No response_ ### Device form factor Desktop ### Nuget packages _No response_ ### Additional context _No response_ ### Help us help you Yes, but only if others can assist.
ghost commented 10 months ago

Hello chiragpandya04, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback ๐Ÿ™Œ

ghost commented 9 months ago

This issue has been marked as "needs attention ๐Ÿ‘‹" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost commented 9 months ago

This issue has been marked as "needs attention ๐Ÿ‘‹" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost commented 8 months ago

This issue has been marked as "needs attention ๐Ÿ‘‹" due to no activity for 15 days. Please triage the issue so the fix can be established.