Version

Selected Property (GroupHeader)

Returns or sets the selected state of the header.
Syntax
'Declaration
 
Public Overrides NotOverridable Property Selected As Boolean
public override bool Selected {get; set;}
Example
Following code shows how Selected property works. It toggles the selected state of the first column. Continuously clicking on this button will select and unselect the column. As you can see from the code below, it's the column's header that has the Selected property. The reason is that the user selects columns by selecting the column headers.

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

  Private Sub Button99_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button99.Click

      Dim column As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(0).Columns(0)

      ' Toggle the selected status of the row.
      column.Header.Selected = Not column.Header.Selected

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button99_Click(object sender, System.EventArgs e)
{

	UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns[0];

	// Toggle the selected status of the row.
	column.Header.Selected = !column.Header.Selected;

}
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