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
Hello,
There is a similar thread in the forum discussing the same set of problems - programmatically grouping, then expanding grouped rows. The technique suggested there involves hooking the PreRenderComplete event and expanding there.
For more details and sample source code, please visit this thread:
http://forums.infragistics.com/forums/p/12998/48120.aspx#48120
Hope this helps.
The problem is I don't see the "IsGroupByColumn" attribute after typing Columns[X].
I do see "PerformGroupRows" however, I would like to, On Page Load to have the needed columns grouped.
Your help is appreciated.