Krypton-Suite / Standard-Toolkit

An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET 6 - 8
BSD 3-Clause "New" or "Revised" License
396 stars 60 forks source link

[Bug]: KryptonDataGridView reorders Columns during debugging #1784

Open lph993 opened 1 week ago

lph993 commented 1 week ago

Describe the bug When adding the KryptonDataGridView component to KryptonForm, the designer will rearrange the Columns properties of the component during debugging startup. At this time, the Columns properties are not in effect. Once run again (without any other operation), the Columns properties will be written in order to the [*. Designer. cs] file, causing interface changes. --Translated from the internet.

Desktop (please complete the following information):

lph993 commented 1 week ago

I just tested it a few more times. It was found that debugging cannot be started when the designer is open, otherwise the designer class will be confused.

lph993 commented 1 week ago

I tested again and found that this issue only occurs when unbound columns are added after binding data to the DataSource (BindingSource).

giduac commented 1 week ago

Hi @lph993,

Can you please add a simple sample program that demonstrates the error.

Thanks.

lph993 commented 1 week ago

DataGridViewDemo.zip here