'Declaration Public Property SelectTypeCol As SelectType
public SelectType SelectTypeCol {get; set;}
This property is used to specify which selection type will be used for the columns in the band or the grid controlled by the specified override. You can choose to allow the user to have multiple columns selected, only one column at a time selected, or to disallow the selection of columns.
You can use the SelectTypeCell and SelectTypeRow properties to specify the way in which cells and rows may be selected.
Because you may want to enable different types of selection at different levels of a hierarchical record set, SelectTypeCol is a property of the UltraGridOverride object. This makes it easy to specify different selection options for each band by assigning each UltraGridBand object its own UltraGridOverride object. If a band does not have an override assigned to it, the control will use the override at the next higher level of the override hierarchy to determine the properties for that band. In other words, any band without an override will use its parent band's setting for SelectTypeCol, and the top-level band will use the grid's setting.
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button52_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button52.Click ' SelectTypeCol specifies how column selection works. ' Set the SelectTypeCol to Single to allow the user to only select a single column ' at a time. Me.UltraGrid1.DisplayLayout.Override.SelectTypeCol = SelectType.Single ' You can override that grid-wide setting for a particular band by setting it on the ' override of that band. For band 1, disallow column selection. Me.UltraGrid1.DisplayLayout.Bands(1).Override.SelectTypeCol = SelectType.None End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button52_Click(object sender, System.EventArgs e) { // SelectTypeCol specifies how column selection works. // Set the SelectTypeCol to Single to allow the user to only select a single column // at a time. this.ultraGrid1.DisplayLayout.Override.SelectTypeCol = SelectType.Single; // You can override that grid-wide setting for a particular band by setting it on the // override of that band. For band 1, disallow column selection. this.ultraGrid1.DisplayLayout.Bands[1].Override.SelectTypeCol = SelectType.None; }
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