wpfui
wpfui copied to clipboard
error in DataGrid control
trafficstars
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
More specifically, the error occurs when trying to reorder the columns by dragging, so at the moment to solve my error I am using the property CanUserReorderColumns="False" which prevents the dragging, but it is a Stylo problem.