Gets or sets the name of the data field used in a distinct summary function.
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.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.
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 Basic | Copy 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 |