'宣言 Public Property RowSelectors As Infragistics.Win.DefaultableBoolean
public Infragistics.Win.DefaultableBoolean RowSelectors {get; set;}
行セレクターは、各行の左端に表示されるグリッドのインターフェイス部分です。行セレクターは、行の状態に関する情報 (現在のアクティブ行、編集をコミットしなかった行) を提供します。行セレクターをクリックすると、行全体を一度に選択できます。レコード セレクターの表示/非表示、およびグリッド全体/バンド単位を選択できます。RowSelectors プロパティは、指定されたオーバーライドによって制御されるバンドまたはグリッドに行セレクターを表示するかどうかを指定します。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button81_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button81.Click ' RowSelectors indicate whether row selectors are displayed. Each row has a row selector ' on the left side of the row. It's used to activate and select rows. Row selectors are ' visible by default, however you can set the RowSelectors property on the override to ' False to hide the row selectors. Me.ultraGrid1.DisplayLayout.Bands(0).Override.RowSelectors = DefaultableBoolean.True ' You can use the RowSelectorAppearance property customize the appearance of the row ' selectors. Me.ultraGrid1.DisplayLayout.Override.RowSelectorAppearance.BackColor = Color.DarkBlue ' You can override that grid-wide setting for a particular band by setting it on the ' override of that band. Me.ultraGrid1.DisplayLayout.Bands(1).Override.RowSelectors = DefaultableBoolean.False End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button81_Click(object sender, System.EventArgs e) { // RowSelectors indicate whether row selectors are displayed. Each row has a row selector // on the left side of the row. It's used to activate and select rows. Row selectors are // visible by default, however you can set the RowSelectors property on the override to // False to hide the row selectors. this.ultraGrid1.DisplayLayout.Bands[0].Override.RowSelectors = DefaultableBoolean.True; // You can use the RowSelectorAppearance property customize the appearance of the row // selectors. this.ultraGrid1.DisplayLayout.Override.RowSelectorAppearance.BackColor = Color.DarkBlue; // You can override that grid-wide setting for a particular band by setting it on the // override of that band. this.ultraGrid1.DisplayLayout.Bands[1].Override.RowSelectors = DefaultableBoolean.False; }