See Also

TextBox Class  | TextBox Members  | SummaryFunc

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

DistinctField Property

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

[Visual Basic]
Public Property DistinctField As String
[C#]
public string DistinctField {get; set;}

Return Type

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#] 

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 Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.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

TextBox Class  | TextBox Members  | SummaryFunc

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.