https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.datagridviewband.hasdefaultcellstyle?view=windowsdesktop-8.0
DataGridViewBand.HasDefaultCellStyle Property (System.Windows.Forms) | Microsoft Learn
Gets a value indicating whether the DefaultCellStyle property has been set.
property systemwindows formsmicrosoftlearn