Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button19_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button19.Click Dim dateColumn As UltraGridColumn = Me.ultraGrid1.DisplayLayout.Bands(1).Columns("OrderDate") Dim numericColumn As UltraGridColumn = Me.ultraGrid1.DisplayLayout.Bands(2).Columns("Unit Price") ' Put min and max constraints on a date column. dateColumn.MinValue = New DateTime(1990, 1, 1) dateColumn.MaxValue = New DateTime(2010, 12, 31) ' Put a min value constraint on a numeric column. numericColumn.MinValue = 0.0 End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button19_Click(object sender, System.EventArgs e) { UltraGridColumn dateColumn = this.ultraGrid1.DisplayLayout.Bands[1].Columns["OrderDate"]; UltraGridColumn numericColumn = this.ultraGrid1.DisplayLayout.Bands[2].Columns["Unit Price"]; // Put min and max constraints on a date column. dateColumn.MinValue = new DateTime( 1990, 1, 1 ); dateColumn.MaxValue = new DateTime( 2010, 12, 31 ); // Put a min value constraint on a numeric column. numericColumn.MinValue = 0.0; }