ActiveReports 11
DistinctField Property
Example 

GrapeCity.ActiveReports.v11 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > TextBox Class : DistinctField Property

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

Syntax
'Declaration
 
Public Property DistinctField As String
public 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
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
See Also

Reference

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