Version

CellInsets Property

Returns an instance of Insets object used for specifying the insets around the cells.
Syntax
'Declaration
 
Public ReadOnly Property CellInsets As Infragistics.Win.Layout.Insets
public Infragistics.Win.Layout.Insets CellInsets {get;}
Remarks

Insets property sepcifies the insets or spacing around the cells.

Example
Following code illustrates the usage for CellInsets and LabelInsets properties. These properties are only applicable in row-layout mode.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout
        ' Turn on the row-layout functionality.
        Me.UltraGrid1.DisplayLayout.Bands(0).RowLayoutStyle = RowLayoutStyle.ColumnLayout
    End Sub

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        Dim column As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(0).Columns(0)

        ' Set the cell insets to be 20 on left, 10 on top, 20 on right and 10 on bottom.
        column.RowLayoutColumnInfo.CellInsets.Initialize(20, 10, 20, 10)
        ' Do the same for the label insets.
        column.RowLayoutColumnInfo.LabelInsets.Initialize(20, 10, 20, 10)
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
		{
			// Turn on the row-layout functionality.
			this.ultraGrid1.DisplayLayout.Bands[0].RowLayoutStyle = RowLayoutStyle.ColumnLayout;
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns[0];

			// Set the cell insets to be 20 on left, 10 on top, 20 on right and 10 on bottom.
			column.RowLayoutColumnInfo.CellInsets.Initialize( 20, 10, 20, 10 );
			// Do the same for the label insets.
			column.RowLayoutColumnInfo.LabelInsets.Initialize( 20, 10, 20, 10 );
		}
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