'宣言 Public Property SelectTypeGroupByRow As SelectType
public SelectType SelectTypeGroupByRow {get; set;}
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button46_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button46.Click ' SelectTypeGroupByRow controls the group-by rows selection. ' Set the SelectTypeGroupByRow on the layout's Override. Me.UltraGrid1.DisplayLayout.Override.SelectTypeGroupByRow = SelectType.Extended ' 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.SelectTypeGroupByRow = SelectType.Single End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button46_Click(object sender, System.EventArgs e) { // SelectTypeGroupByRow controls the group-by rows selection. // Set the SelectTypeGroupByRow on the layout's Override. this.ultraGrid1.DisplayLayout.Override.SelectTypeGroupByRow = SelectType.Extended; // 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.SelectTypeGroupByRow = SelectType.Single; }