See Also

GroupHeader Class  | GroupHeader Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

DataField Property

Gets or sets the name of the field used to group the data source records.

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

Return Type

A string value that represents the name of the field to be grouped.

Remarks

ActiveReports checks for any changes in the value of the specified field and starts a new group when the value changes.  Current groups are ended (i.e. the group footer section is printed) before the new group is started.

The specified field can originate from the data source or an unbound field added to the Fields collection in the DataInitialize event.

Example

[C#] 

private void GroupHeader1_Format(object sender, System.EventArgs eArgs) 

    this.GroupHeader1.ColumnLayout = true; 
    this.GroupHeader1.DataField = "Country"; 
}

[Visual Basic] 

Private Sub GroupHeader1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles GroupHeader1.Format
   Me.GroupHeader1.ColumnLayout = True
   Me.GroupHeader1.DataField = "Country"
End Sub

See Also

GroupHeader Class  | GroupHeader Members

 

 


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