Gets or sets the name of the data field used in a distinct summary function.
| Visual Basic (Declaration) | |
|---|---|
Public Property DistinctField As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public string DistinctField {get; set;} | |
Return Value
A string value that represents the field name to be used as a distinct field in the summary calculation.| C# | Copy Code |
|---|---|
private void detail_Format(object
sender, System.EventArgs eArgs) | |
| Visual Basic | Copy Code |
|---|---|
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format | |
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.