注: 置き換え可能なマスク項目は:
groupby 列ヘッダー キャプションで置き換えられる [caption]。
この groupby の共通セル値で置き換えられる [value]。
[count] - 表示されている子行の数。
[count,x,y,z] – この数が 0 の場合、x 文字列を代用し、この数が 1 の場合、y 文字列を代用します。それ以外は z 文字列を代用します。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button42_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button42.Click ' Set the GroupByRowDescriptionMask on the layout's override. Me.UltraGrid1.DisplayLayout.Override.GroupByRowDescriptionMask = "(value): (count) item(s)." ' You can override that grid-wide setting for a particular band by setting it on the ' override of that band. Me.UltraGrid1.DisplayLayout.Bands(0).Override.GroupByRowDescriptionMask = "(value): (count) Customer(s)." End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button42_Click(object sender, System.EventArgs e) { // Set the GroupByRowDescriptionMask on the layout's override. this.ultraGrid1.DisplayLayout.Override.GroupByRowDescriptionMask = "[value]: [count] item(s)."; // You can override that grid-wide setting for a particular band by setting it on the // override of that band. this.ultraGrid1.DisplayLayout.Bands[0].Override.GroupByRowDescriptionMask = "[value]: [count] Customer(s)."; }