Version

Style Property (UltraGridCell)

Specifies the column style of the cell.
Syntax
'Declaration
 
Public Property Style As ColumnStyle
public ColumnStyle Style {get; set;}
Example
Following code sets the style of a column and then overrides it for a cell in the same column.

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;
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also