dotnet / dotnet/wpf

Datagrid with frozen columns: Adorner of moving columns visual issue

Open
#10,425 1 comment 1 reaction 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

I have a datagrid with one frozen column. One other/moving column has an adorner (red rectangle on the border of the cell + triangle) shown (validation error). When I scroll horizontally the column moves behind the frozen column, but the adorner does not.

![Image](https://github.com/user-attachments/assets/70b2d6b8-4d14-4905-96b3-a13adde9c4d5)

I know the nature of adorners and how they are placed in the visual tree. So I know this isn't an easy thing to solve. But it is a quite obvious bug for the user.

### Reproduction Steps

1. Create a datagrid with 4 columns.
2. The IsFrozen=true for the 1st one.
3. Add an adorner to the 3rd one.
4. Scroll so the 3rd column moves behind the frozen 1st one.

### Expected behavior

The adorner should also move behind the frozen columns as well.

Alternative: The adorner should get invisible once the column enters behind the the frozen column, not just when its fully behind it.

### Actual behavior

The adorner moves over the frozen column

### Regression?

This is the case since ever afaik

### Known Workarounds

No known workarounds. But I'm happy if someone could tell me one.

### Impact

_No response_

### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.