Infragistics(R) NetAdvantage(R) Windows Forms
MaxValueExclusive Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridColumn Class : MaxValueExclusive Property

Gets/sets the first value greater than the maximum value that can be entered in the cell. Default value is null (Nothing) meaning no maximum constraint. The object assigned to this property should be the same type as the column's DataType or compatible otherwise it won't be honored.

Syntax

Visual Basic (Declaration) 
Public Property MaxValueExclusive As Object
C# 
public object MaxValueExclusive {get; set;}

Example

This snippet demonstrates how to restrict the values in a column to an exclusive range, such as (0, 1).

Visual BasicCopy Code
Private Sub SetupGrid()
   ' Set the "quantity" column to only allow numbers greater than 0 and less than 1.
   '
   Me.ultraGrid1.DisplayLayout.Bands(0).Columns("quantity").MinValueExclusive = 0.0
   Me.ultraGrid1.DisplayLayout.Bands(0).Columns("quantity").MaxValueExclusive = 1.0
End Sub
C#Copy Code
private void SetupGrid()
{
	// Set the "quantity" column to only allow numbers greater than 0 and less than 1.
	//
	this.ultraGrid1.DisplayLayout.Bands[0].Columns["quantity"].MinValueExclusive = 0.0;
	this.ultraGrid1.DisplayLayout.Bands[0].Columns["quantity"].MaxValueExclusive = 1.0;
}

See Also