'宣言 Public Property GroupByRowAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase GroupByRowAppearance {get; set;}
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button43_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button43.Click ' Set the GroupByRowAppearance on the layout's override. It applies to group-by rows which ' are the rows that have tiny expansion indicator button on the left side that when you ' click expands and shows the actual rows that belong to that group. Me.UltraGrid1.DisplayLayout.Override.GroupByRowAppearance.BackColor = Color.LightBlue ' 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.GroupByRowAppearance.BackColor = Color.Red End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button43_Click(object sender, System.EventArgs e) { // Set the GroupByRowAppearance on the layout's override. It applies to group-by rows which // are the rows that have tiny expansion indicator button on the left side that when you // click expands and shows the actual rows that belong to that group. this.ultraGrid1.DisplayLayout.Override.GroupByRowAppearance.BackColor = Color.LightBlue; // 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.GroupByRowAppearance.BackColor = Color.Red; }