https://learn.microsoft.com/de-de/dotnet/api/system.windows.forms.datagridviewcolumn.getpreferredwidth?view=netframework-4.8.1&viewFallbackFrom=windowsdesktop-10.0
DataGridViewColumn.GetPreferredWidth Method (System.Windows.Forms) | Microsoft Learn
Calculates the ideal width of the column based on the specified criteria.
windows formsmethodsystemmicrosoftlearn