lepoco / lepoco/wpfui

error in DataGrid control

Open
#894 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Hi, I just found an error using DataGrid control, in simple example

    <ui:DataGrid x:Name="miDataGrid" AutoGenerateColumns="False">
        <DataGrid.Columns>
            <DataGridTextColumn Header="Mi Columna" Binding="{Binding MiDato}"/>
        </DataGrid.Columns>
    </ui:DataGrid>

The bug or error occurs when I hold down and drag the column header.

ezgif com-video-to-gif-converter

and when debugging the error it gives me the following message.

image

It's not that you're clicking and dragging in the header regularly, but there shouldn't be that error, I discovered it by chance.

To Reproduce

sudden closure

Expected behavior

Error al usar control

Screenshots

No response

OS version

Windows 11

.NET version

6.0

WPF-UI NuGet version

2.1.0

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash in the provided DataGrid example on Windows 11 with .NET 6.0 and WPF-UI 2.1.0, holding and dragging the column header. Trace the DataGrid column-header drag path and use the debugger message shown in the issue; done means the interaction no longer closes the application or raises the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.