DataGrid::PreferredRowHeight Property
.NET Framework (current version)
Gets or sets the preferred row height for the System.Windows.Forms::DataGrid control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Set this property before resetting the DataSource and DataMember properties (either separately, or through the SetDataBinding method), or the property will have no effect.
The following code example first sets a new font, and sets the PreferredRowHeight to the same height as the new font.
.NET Framework
Available since 1.1
Available since 1.1
Show: