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
Group a Column By Default
posted

I am using Netadvantage 6.3, with ASP.NET 2.0, Visual Studio 2005.  That said, I wouldl ike to have the UltraWebGrid, onLoad, default to a specified column for GroupBy.

Is this possible?  How.

Thanks.

MsBajanLady

Parents
No Data
Reply
  • 811
    Verified Answer
    posted

    MsBajanLady,

    You can achieve this by using the IsGroupByColumn property of the Column. Use the following code:

    In Visual Basic:

    Imports Infragistics.WebUI.UltraWebGrid
    ...
    ' Set the ViewType property to GroupBy mode
    Me.UltraWebGrid1.DisplayLayout.ViewType = ViewType.OutlookGroupBy
    ' Set the IsGroupByColumn property to True
    Me.UltraWebGrid1.DisplayLayout.Bands(0).Columns(0).IsGroupByColumn = True

    In C#:

    using Infragistics.WebUI.UltraWebGrid;
    ...
    //Set the ViewType property to GroupBy mode
    this.UltraWebGrid1.DisplayLayout.ViewType = ViewType.OutlookGroupBy;

    //Set the IsGroupByColumn property to true
    , Use column index
    this.UltraWebGrid1.DisplayLayout.Bands[0].Columns[0].IsGroupByColumn = true;


    Thank you.

    Bunty :)
Children
No Data