Hi,
I copied, or attempted to reproduce, the code for programatically expanding the groupBy rows but am not getting any output.
I am using VS 2005 with NetAdvantage 6.3 Web. *We can upgrade to VS 2008, yet.
How do I get this to group on the two columns indicated and have the output show expanded.
Thank you.
MsBajanLady
This is my code:
Private Sub BindData()
' Enable paging by default
Me.ugGridExceptions.DisplayLayout.Pager.AllowPaging = True
Me.ugGridExceptions.DataSource = Me.dsAttendance.Tables("usp_ReportInfo").DefaultView
Me.ugGridExceptions.DataBind()
Me.ugGridExceptions.DisplayLayout.Bands.FromKey("Id").Columns.Band.Columns.FromKey("UserID").IsGroupByColumn = True
Me.ugGridExceptions.DisplayLayout.Bands.FromKey("Employee").Columns.Band.Columns.FromKey("Employee").IsGroupByColumn = True
Me.ugGridExceptions.PerformGroupRows()
Me.ugGridExceptions.ExpandAll()
' Disable paging if there aren't enough rows for more than one page
If (Me.ugGridExceptions.DisplayLayout.Pager.PageCount < 2) Then
Me.ugGridExceptions.DisplayLayout.Pager.AllowPaging = False
End If
End Sub