ActiveReports 13
DataField Property (GroupHeader)

GrapeCity.ActiveReports Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > GroupHeader Class : DataField Property

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

Public Property DataField As String
public string DataField {get; set;}

Property Value

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

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.

private void rptSection_ReportStart(object sender, System.EventArgs eArgs)
  this.groupHeader1.DataField = "Country";
Private Sub rptSection_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs)   
 Me.GroupHeader1.DataField = "Country"
End Sub
See Also


GroupHeader Class
GroupHeader Members