DataGridViewHeaderCell.GetSize Method (Int32)
Gets the size of the cell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The value of the DataGridView property for this cell is null and rowIndex does not equal -1.
The value of the OwningColumn property for this cell is not null and rowIndex does not equal -1.
The value of the OwningRow property for this cell is not null and rowIndex is less than zero or greater than or equal to the number of rows in the control.
The DataGridViewTopLeftHeaderCell if the cell is a top left header cell.method returns the size necessary to fit in a row of column headers if the header cell is a column header, the size necessary to fit in a column of row headers if the header cell is a row header, or the size necessary to be a
Available since 2.0