Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

[TreeDataGrid] Row selection needs improving #371

@clintsinger

Description

@clintsinger

Describe the bug

On the TreeDataGrid when one clicks on a row it will only be selected if the user clicks on the rendered column element. For example, if using a TextColumn only clicking on the text will cause the row to select. One should be able to select any part of the row to select it.

To Reproduce

  1. Create a TreeDataGrid with any number of columns.
  2. Click on the white space of the row
  3. Observe that the row is not selected.
  4. Click on the rendered element, such as the text in a column
  5. Observe that the row is selected.

Expected behavior

One should be able to click on any part of a row to select it.

Avalonia version

Avalonia: 11.3.0, Avalonia.Controls.TreeDataGrid: 11.1.1

OS

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions