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.
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; }
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