Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
290
Showing the Expand All - UltraWebGrid
posted

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

Parents
No Data
Reply
  • 28464
    posted

    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.

Children