Appframe Knowledge Base

1 hits

How to hide bands with only one record

		Dim vReport As DevExpress.XtraReports.UI.XtraReport = sender.Report
		Dim vPrevValue As String = vReport.GetPreviousColumnValue("GroupField")
		Dim vCurrValue As String = vReport.GetCurrentColumnValue("GroupField")
		Dim vNextValue As String = vReport.GetNextColumnValue("GroupField")

		If vCurrValue <> vNextValue AndAlso vCurrValue <> vPrevValue Then
			e.Cancel = True
		End If

	Catch ex As Exception

	End Try

reporting win · Perma link post comment Posted by: Håvard Ravatn (19-jun-2012)