'宣言 Public Property HiddenWhenGroupBy As Infragistics.Win.DefaultableBoolean
public Infragistics.Win.DefaultableBoolean HiddenWhenGroupBy {get; set;}
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button13_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button13.Click ' Setting the property on the DisplayLayout's Override effects the whole grid. Me.ultraGrid1.DisplayLayout.Override.GroupByColumnsHidden = DefaultableBoolean.False ' You can override above grid-wide settings on a particular band by setting the ' property in question to a non-default value in the Override object of that ' band. Me.ultraGrid1.DisplayLayout.Bands(0).Override.GroupByColumnsHidden = DefaultableBoolean.True ' Forthermore, you can override above settings by setting HiddenWhenGroupBy property ' on an individual column. Me.ultraGrid1.DisplayLayout.Bands(0).Columns(0).HiddenWhenGroupBy = DefaultableBoolean.True End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button13_Click(object sender, System.EventArgs e) { // Setting the property on the DisplayLayout's Override effects the whole grid. this.ultraGrid1.DisplayLayout.Override.GroupByColumnsHidden = DefaultableBoolean.False; // You can override above grid-wide settings on a particular band by setting the // property in question to a non-default value in the Override object of that // band. this.ultraGrid1.DisplayLayout.Bands[0].Override.GroupByColumnsHidden = DefaultableBoolean.True; // Forthermore, you can override above settings by setting HiddenWhenGroupBy property // on an individual column. this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].HiddenWhenGroupBy = DefaultableBoolean.True; }