'宣言 Public Property GroupByColumnsHidden As Infragistics.Win.DefaultableBoolean
public Infragistics.Win.DefaultableBoolean GroupByColumnsHidden {get; set;}
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button36_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button36.Click ' Group-by columns are the columns with which the rows are grouped by. ' GroupByColumnAppearance applies to cells of the group-by columns. By default, ' these group-by columns are hidden by the UltraGrid. However you can set the ' GroupByColumnsHidden to false to prevent that. Otherwise, the ' GroupByColumnAppearance can not be demonstrated since the group-by columns would ' be hidden. Me.UltraGrid1.DisplayLayout.Override.GroupByColumnsHidden = DefaultableBoolean.False ' Set the GroupByColumnAppearance on the layout's override. This applies to group-by ' columns in all bands. Me.UltraGrid1.DisplayLayout.Override.GroupByColumnAppearance.BackColor = Color.Red ' 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.GroupByColumnAppearance.BackColor = Color.Blue End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button36_Click(object sender, System.EventArgs e) { // Group-by columns are the columns with which the rows are grouped by. // GroupByColumnAppearance applies to cells of the group-by columns. By default, // these group-by columns are hidden by the UltraGrid. However you can set the // GroupByColumnsHidden to false to prevent that. Otherwise, the // GroupByColumnAppearance can not be demonstrated since the group-by columns would // be hidden. this.ultraGrid1.DisplayLayout.Override.GroupByColumnsHidden = DefaultableBoolean.False; // Set the GroupByColumnAppearance on the layout's override. This applies to group-by // columns in all bands. this.ultraGrid1.DisplayLayout.Override.GroupByColumnAppearance.BackColor = Color.Red; // 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.GroupByColumnAppearance.BackColor = Color.Blue; }