MaxLength プロパティは、列のセルに入力できるテキストの長さを制限します。このプロパティを使用すると、データベースまたはアプリケーション固有の制限を適用できます。
Private Sub SetupGrid() ' Set the "fname" column to only allow values that are between 1 and 15 characters long. ' Me.ultraGrid1.DisplayLayout.Bands("customers").Columns("fname").MinLength = 1 Me.ultraGrid1.DisplayLayout.Bands("customers").Columns("fname").MaxLength = 15 End Sub
private void SetupGrid() { // Set the "fname" column to only allow values that are between 1 and 15 characters long. // this.ultraGrid1.DisplayLayout.Bands["customers"].Columns["fname"].MinLength = 1; this.ultraGrid1.DisplayLayout.Bands["customers"].Columns["fname"].MaxLength = 15; }