GrapeCity.ActiveReports.v9 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > TextBox Class : DistinctField Property |
Gets or sets the name of the data field used in a distinct summary function.
'Declaration Public Property DistinctField As System.String
public System.string DistinctField {get; set;}
The summary function will process DataField values based on the distinct value of this field.
This property is used only when the SummaryFunc value is one of Distinct Summary Functions. When using the summary functions with a field, the CanGrow and CanShrink properties are disabled for the field.
private void detail_Format(object sender, System.EventArgs eArgs) { this.textBox1.DistinctField = null; this.textBox1.SummaryFunc = SummaryFunc.Sum; this.textBox1.SummaryGroup = null; this.textBox1.SummaryRunning = SummaryRunning.None; this.textBox1.SummaryType = SummaryType.None; }
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format Me.TextBox1.DistinctField = Nothing Me.TextBox1.SummaryFunc = SummaryFunc.Sum Me.TextBox1.SummaryGroup = Nothing Me.TextBox1.SummaryRunning = SummaryRunning.None Me.TextBox1.SummaryType = SummaryType.None End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
TextBox Class
TextBox Members
ActiveReports6~GrapeCity.ActiveReports.TextBox~SummaryFunc