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

Gets/sets the first value less than the minimum 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 MinValueExclusive As Object
C# 
public object MinValueExclusive {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