- g
- A System.Drawing.Graphics object.
- value
- An object value for which you want to know the screen height and width.
The height used for auto resizing a cell.
The DataGridColumnStyle.GetPreferredSize(System.Drawing.Graphics, object) will usually be invoked from a mouse down event to resize a column's height for a long string.