Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent group spacing in DataGrid #18200

Open
mjazd opened this issue Feb 14, 2025 · 2 comments
Open

Inconsistent group spacing in DataGrid #18200

mjazd opened this issue Feb 14, 2025 · 2 comments

Comments

@mjazd
Copy link

mjazd commented Feb 14, 2025

Describe the bug

When using groups in DataGrid a column is added for indentation. When displaying less than 26 rows this column is not present.
Image

To Reproduce

  1. Run minimal reproduction: https://github.com/mjazd/DataGridSpacingBug
  2. Put 0 in the TextBox and hit Filter, now the indentation is missing.
  3. Put any number smaller than 26 in the TextBox and hit Filter, the indentation is still missing.

The number in the TextBox limits the number of lines shown in the DataGrid. If going straight from a number larger than 25 to a smaller number then the indentation is still present. The indentation is missing after sequence: (>25) -> 0 -> (<26)

Expected behavior

No response

Avalonia version

11.2.3

OS

Windows

Additional context

No response

@maxkatz6
Copy link
Member

IIRC, this extra column is reserved for row header. But that's weird its visibility depends on rows count.

@mjazd
Copy link
Author

mjazd commented Feb 14, 2025

This column is different from the one for the row header. If I populate the row header it looks like this:
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants