ActiveReports Developer 7
DistinctField Property
See Also  Example
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > TextBox Class : DistinctField Property

Glossary Item Box

Gets or sets the name of the data field used in a distinct summary function.

Syntax

Visual Basic (Declaration) 
Public Property DistinctField As System.String
C# 
public System.string DistinctField {get; set;}

Property Value

A string value that represents the field name to be used as a distinct field in the summary calculation.

Remarks

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.

Example

C#Copy Code
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;
}
Visual BasicCopy Code
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

See Also

Reference

TextBox Class
TextBox Members
ActiveReports6~GrapeCity.ActiveReports.TextBox~SummaryFunc