wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

error in DataGrid control

Open hpvcodeDev opened this issue 1 year ago • 1 comments
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.

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

hpvcodeDev avatar Dec 31 '23 13:12 hpvcodeDev

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.

hpvcodeDev avatar Dec 31 '23 13:12 hpvcodeDev