Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click ' Add an unbound column. If Not Me.UltraGrid1.DisplayLayout.Bands(0).Columns.Exists("UnBound1") Then Me.UltraGrid1.DisplayLayout.Bands(0).Columns.Add("UnBound1") End If ' Set the column's style to DropDownCalendar. All the cells in the column ' will be drop down calendars. Me.UltraGrid1.DisplayLayout.Bands(0).Columns("UnBound1").Style = ColumnStyle.DropDownCalendar ' Override the style for a particular cell. Me.UltraGrid1.Rows(0).Cells("UnBound1").Style = ColumnStyle.CheckBox End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button1_Click(object sender, System.EventArgs e) { // Add an unbound column. if ( ! this.ultraGrid1.DisplayLayout.Bands[0].Columns.Exists( "UnBound1" ) ) this.ultraGrid1.DisplayLayout.Bands[0].Columns.Add( "UnBound1" ); // Set the column's style to DropDownCalendar. All the cells in the column // will be drop down calendars. this.ultraGrid1.DisplayLayout.Bands[0].Columns[ "UnBound1" ].Style = ColumnStyle.DropDownCalendar; // Override the style for a particular cell. this.ultraGrid1.Rows[0].Cells[ "UnBound1" ].Style = ColumnStyle.CheckBox; }