GridAutoSizeMode
Specifies constants that define the row/column auto-sizing behavior.
Both = 3
Autosizing accounts for header and data cells.
Cells = 2
Autosizing accounts for data cells.
Headers = 1
Autosizing accounts for header cells.
None = 0
Autosizing does not take neither cells nor headers into account.