Version

RowSelectorHeaderStyle Property

Returns or sets a value that determines the style of the row selector header area.
Syntax
'Declaration
 
Public Property RowSelectorHeaderStyle As Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle
public Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle RowSelectorHeaderStyle {get; set;}
Remarks

The RowSelectorHeaderStyle determines the look and position of the area above the Row Selectors if Row Selectors are visible.

If the RowSelectorHeaderStyle is set to None there will be no visible element assigned to this area and the header of the first column will be aligned with the left edge of the column.

If the RowSelectorHeaderStyle is set to ExtendFirstColumn the header of the first column will extend to the left over the area above the Row Selectors.

If the RowSelectorHeaderStyle is set to SeparateElement a RowSelectorHeaderUIElement will be positioned above the Row Selectors and the header of the first column will be aligned with the left edge of the column.

The Default value is ExtendFirstColumn.

If the RowSelectorHeaderStyle is set to SeparateElement the RowSelectorHeaderAppearance object can be used to set the appearance of the RowSelectorHeader.

Example
The following code sets the RowSelectorHeaderStyle on the layout's override and a band's override.

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


Private Sub button_Click(sender As Object, e As System.EventArgs)

   ' The RowSelectorHeaderStyle determines the look and position of the area above Row Selectors
   ' if Row Selectors are visible.

   ' If the RowSelectorHeaderStyle is set to None there will be no visible element assigned to
   ' this area and the first header will be aligned with the left edge of the column.
   Me.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.None
   
   ' If the RowSelectorHeaderStyle is set to ExtendFirstColumn the first header will extend to
   ' the left over the area above the Row Selectors.  The Default value is ExtendFirstColumn.
   Me.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.ExtendFirstColumn
   
   ' If the RowSelectorHeaderStyle is set to SeperateElement a RowSelectorHeaderUIElement will be
   ' positioned above the Row Selectors and the first header will be aligned with the left edge of
   ' the column.
   Me.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.SeperateElement
   
   ' If the RowSelectorHeaderStyle is set to SeperateElement the RowSelectorHeaderAppearance object
   ' can be used to set the appearance of the RowSelectorHeader.
   ' Set the RowSelectorHeaderAppearance on the layout's override.
   Me.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderAppearance.BackColor = Color.LightGreen
   
   ' You can override the grid-wide setting for a particular band by setting the override
   ' of the particular band.
   Me.ultraGrid1.DisplayLayout.Bands(1).Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.None

End Sub 'button_Click
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;


private void button_Click(object sender, System.EventArgs e)
{   
   // The RowSelectorHeaderStyle determines the look and position of the area above Row Selectors
   // if Row Selectors are visible.

   // If the RowSelectorHeaderStyle is set to None there will be no visible element assigned to
   // this area and the first header will be aligned with the left edge of the column.
   this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.None;

   // If the RowSelectorHeaderStyle is set to ExtendFirstColumn the first header will extend to
   // the left over the area above the Row Selectors.  The Default value is ExtendFirstColumn.
   this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.ExtendFirstColumn;

   // If the RowSelectorHeaderStyle is set to SeperateElement a RowSelectorHeaderUIElement will be
   // positioned above the Row Selectors and the first header will be aligned with the left edge of
   // the column.
   this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.SeperateElement;

   // If the RowSelectorHeaderStyle is set to SeperateElement the RowSelectorHeaderAppearance object
   // can be used to set the appearance of the RowSelectorHeader.

   // Set the RowSelectorHeaderAppearance on the layout's override.
   this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderAppearance.BackColor = Color.LightGreen;

   // You can override the grid-wide setting for a particular band by setting the override
   // of the particular band.
   this.ultraGrid1.DisplayLayout.Bands[1].Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.None;
}
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