Version

SizingMode Property

Returns or sets a value that indicates whether the user can resize two adjacent scrolling regions with the splitter bar. This property is not available at design-time.
Syntax
'Declaration
 
Public Property SizingMode As SizingMode
public SizingMode SizingMode {get; set;}
Remarks

When this property is set for a colscrollregion, it either frees or restricts the splitter bar between that colscrollregion and the one to its right, unless the current colscrollregion is the rightmost region, in which case the splitter bar between that colscrollregion and the one to its right is affected.

When a colscrollregion is sized, the BeforeColRegionSize event is generated.

When this property is set for a rowscrollregion, it either frees or restricts the splitter bar between that rowscrollregion and the one beneath it, unless the current rowscrollregion is the bottommost region, in which case the splitter bar between that rowscrollregion and the one above it is affected.

When a rowscrollregion is sized, the BeforeRowRegionSize event is generated.

Example
Following code sets up the ultraGrid1 with 2 colum-scroll-regions and two row-scroll-regions and thus having a total of four row-col-intersection regions.

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

  Private Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button5.Click

      ' Split the column-scroll-region and the row-scroll-region each.
      Me.ultraGrid1.DisplayLayout.ColScrollRegions(0).Split()
      Me.ultraGrid1.DisplayLayout.RowScrollRegions(0).Split()

      ' Set the max regions the grid can have preventing the user from splitting
      ' any more than the max.
      Me.ultraGrid1.DisplayLayout.MaxColScrollRegions = 2
      Me.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 2

      ' Set the sizing mode to Fixed, so the user can't resize the scroll regions.
      Me.ultraGrid1.DisplayLayout.RowScrollRegions(0).SizingMode = SizingMode.Fixed
      Me.ultraGrid1.DisplayLayout.RowScrollRegions(1).SizingMode = SizingMode.Fixed
      Me.ultraGrid1.DisplayLayout.ColScrollRegions(0).SizingMode = SizingMode.Fixed
      Me.ultraGrid1.DisplayLayout.ColScrollRegions(1).SizingMode = SizingMode.Fixed

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button5_Click(object sender, System.EventArgs e)
{

	// Split the column-scroll-region and the row-scroll-region each.
	this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Split( );
	this.ultraGrid1.DisplayLayout.RowScrollRegions[0].Split( );

	// Set the max regions the grid can have preventing the user from splitting
	// any more than the max.
	this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 2;
	this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 2;

	// Set the sizing mode to Fixed, so the user can't resize the scroll regions.
	this.ultraGrid1.DisplayLayout.RowScrollRegions[0].SizingMode = SizingMode.Fixed;
	this.ultraGrid1.DisplayLayout.RowScrollRegions[1].SizingMode = SizingMode.Fixed;
	this.ultraGrid1.DisplayLayout.ColScrollRegions[0].SizingMode = SizingMode.Fixed;
	this.ultraGrid1.DisplayLayout.ColScrollRegions[1].SizingMode = SizingMode.Fixed;

}
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