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,
Most probably IsGroupByColumn property has been added at a later point to the grid. 2006.3 is two years old, is there a reason that prevents you from upgrading? There are plenty of new features implemented and issues addressed in the newer versions.
In any case, I can suggest taking a look at the following article that refers to older grid versions:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=2321
Maybe there are good suggestions there
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.
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.