Version

MinRowHeight Property

Specifies the minimum row height. By default the row heights are restricted by the font size and any drop down buttons that the cell may have. You can use this property to prevent the UltraGrid from imposing such a limit so you can programmatically set the row height to a smaller value than what UltraGrid calculates the minimum row height to be. Default value is -1. Setting this property to 0 will throw an exception since minimum row height has to be at least 1.
Syntax
'Declaration
 
Public Property MinRowHeight As Integer
public int MinRowHeight {get; set;}
Remarks

MinRowHeight specifies the minimum row height. By default the row heights are restricted by the font size and any drop down buttons that the cell may have. You can use this property to prevent the UltraGrid from imposing such a limit so you can programmatically set the row height to a smaller value than what UltraGrid calculates the minimum row height to be. UltraGrid will use this as the minimum row height. Setting this property to 0 will throw an exception since minimum row height has to be at least 1.

Example
Following code sets the MinRowHeight property to 1 and thus lifting the restriction that UltraGrid puts on the row heights in terms of how small the user can resize as well as how small the row heights can be set through code.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout
        ' By default the UltraGrid calculates the minimum height for the rows in a band
        ' and restricts the row heights by it. To override this minimum height set
        ' the MinRowHeight.
        Me.UltraGrid1.DisplayLayout.Bands(0).Override.MinRowHeight = 1
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
		{
			// By default the UltraGrid calculates the minimum height for the rows in a band
			// and restricts the row heights by it. To override this minimum height set
			// the MinRowHeight.
			this.ultraGrid1.DisplayLayout.Bands[0].Override.MinRowHeight = 1;
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also