Version

RowSizingArea Property

Returns or sets a value that determines which part of the grid's interface may be used to resize rows.
Syntax
'Declaration
 
Public Property RowSizingArea As RowSizingArea
public RowSizingArea RowSizingArea {get; set;}
Remarks

If row resizing is enabled (as determined by the RowSizing property) the user can resize rows using the mouse. Resizing is always accomplished by clicking on the bottom edge of the row and dragging the mouse. The RowSizingArea property specifies which part of the row responds to the mouse pointer to initiate resizing of the row. You can choose to have just the record selectors, just the borders of the data area, or both be active forrow resizing. When the mouse pointer passes over the active area of the row, the cursor changes to a resizing cursor.

When setting a value for this property, you may want to consider whether the record selectors will remain visible at all times as your application runs, or whether they can be scrolled out of view, and what effect this will have on the ability of users to resize rows. Also, you will need to determine if having the row borders in the data area active for row resizing will interfere with other mouse operations in the grid and distract the user.

Example
Following code sets some of the properties available for controlling row sizing.

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

  Private Sub Button79_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button79.Click

      ' Set the RowSizing on the layout's override to Free so the rows in the UltraGrid
      ' can be resized independently. By default, row heights are syncronized so when one
      ' row is resized, all the rows in that band will be rezied to that height.
      Me.UltraGrid1.DisplayLayout.Override.RowSizing = RowSizing.Free

      ' Set DefaultRowHeight off the layout's override to 20 so all the rows in the UltraGrid
      ' are sized to 20.
      Me.UltraGrid1.DisplayLayout.Override.DefaultRowHeight = 20

      ' RowSizingArea indicates which part of a row can be used to resize the row. By default,
      ' the user can resize rows using the row-selectors. You can set it to EntireRow to allow
      ' resizing using the entire row and not just the row-selector.
      Me.UltraGrid1.DisplayLayout.Override.RowSizingArea = RowSizingArea.EntireRow

      ' You can override that grid-wide setting for a particular band by setting it on the
      ' override of that band. Set the RowSizing to Fixed to prevent the user from reszing
      ' rows.
      Me.UltraGrid1.DisplayLayout.Bands(1).Override.RowSizing = RowSizing.Fixed
      Me.UltraGrid1.DisplayLayout.Bands(1).Override.DefaultRowHeight = 40

      ' With the RowSizing modes of AutoFree and AutoFixed, the UltraGrid resizes the rows
      ' based on its contents. By default, the UltraGrid will resize the row without any 
      ' limit. You can use the RowSizingAutoMaxLines property to limit the row-autosizing
      ' to a certain number of lines.
      Me.UltraGrid1.DisplayLayout.Bands(2).Override.RowSizing = RowSizing.AutoFree
      Me.UltraGrid1.DisplayLayout.Bands(2).Override.RowSizingAutoMaxLines = 5

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

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

	// Set the RowSizing on the layout's override to Free so the rows in the UltraGrid
	// can be resized independently. By default, row heights are syncronized so when one
	// row is resized, all the rows in that band will be rezied to that height.
	this.ultraGrid1.DisplayLayout.Override.RowSizing = RowSizing.Free;

	// Set DefaultRowHeight off the layout's override to 20 so all the rows in the UltraGrid
	// are sized to 20.
	this.ultraGrid1.DisplayLayout.Override.DefaultRowHeight = 20;

	// RowSizingArea indicates which part of a row can be used to resize the row. By default,
	// the user can resize rows using the row-selectors. You can set it to EntireRow to allow
	// resizing using the entire row and not just the row-selector.
	this.ultraGrid1.DisplayLayout.Override.RowSizingArea = RowSizingArea.EntireRow;

	// You can override that grid-wide setting for a particular band by setting it on the
	// override of that band. Set the RowSizing to Fixed to prevent the user from reszing
	// rows.
	this.ultraGrid1.DisplayLayout.Bands[1].Override.RowSizing = RowSizing.Fixed;
	this.ultraGrid1.DisplayLayout.Bands[1].Override.DefaultRowHeight = 40;

	// With the RowSizing modes of AutoFree and AutoFixed, the UltraGrid resizes the rows
	// based on its contents. By default, the UltraGrid will resize the row without any 
	// limit. You can use the RowSizingAutoMaxLines property to limit the row-autosizing
	// to a certain number of lines.
	this.ultraGrid1.DisplayLayout.Bands[2].Override.RowSizing = RowSizing.AutoFree;
	this.ultraGrid1.DisplayLayout.Bands[2].Override.RowSizingAutoMaxLines = 5;

}
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