error in DataGrid control
Nobody has claimed this yet.
- 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.
and when debugging the error it gives me the following message.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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