I have encountered a strange problem.
When the program loads, everything is normal and the created rows are displayed correctly. But when I click on the DataGridView head