UltraGridBand オブジェクトは関連する列のセットを UltraGrid、UltraCombo または UltraDropDown コントロールで表します。ただし、フラットデータの場合は 1 つのバンドしか存在しないのに対し、階層データを持つグリッドの場合は複数のバンドを持ちます。
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged Dim band As Infragistics.Win.UltraWinGrid.UltraGridBand band = Me.UltraGrid1.DisplayLayout.Bands(0) band.AddButtonCaption = "Customers" band.AddButtonToolTipText = "Adds a new Customer record." band.AutoPreviewEnabled = False band.AutoPreviewField = "" band.AutoPreviewIndentation = 15 band.AutoPreviewMaxLines = 3 band.ColHeadersVisible = True band.ColHeaderLines = 2 band.HeaderVisible = True band.ScrollTipField = "Cust_ID" band.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.InsetSoft band.CardView = True band.CardSettings.CaptionField = "Name" band.CardSettings.AllowLabelSizing = True band.CardSettings.AllowSizing = True band.CardSettings.Style = Infragistics.Win.UltraWinGrid.CardStyle.MergedLabels band.CardSettings.ShowCaption = True band.CardSettings.AutoFit = True End Sub