AllowGroup for C1CommandField in GridView 2025v2 399

Posted by: enrique.pv-ext on 8 January 2026, 4:54 am EST

    • Post Options:
    • Link

    Posted 8 January 2026, 4:54 am EST

    Hi,

    Migrate from 2010v1 to 2025v2 399 in ASP.NET WebForms NET Framework 4.8.1.

    Using C1GridView from C1.Web.Wijmo.Controls.48.dll

    Now, this not compiles:

    col.AllowGroup = false; // NOT COMPILES

    Which is the alternative now, for GridView 2025v2 399

    I use :

    col.GroupInfo.GroupSingleRow = false;

    Full code:

    // NEW
    			//var colCommand = new C1CommandField();
    			var colCommand = new C1.Web.Wijmo.Controls.C1GridView.C1CommandField();
    			colCommand.ItemStyle.Width = 40;
            colCommand.ShowEditButton = true;
            colCommand.ButtonType = ButtonType.Image;
            colCommand.EditImageUrl = "~/App_Themes/Content/Imagenes/editing.gif";
            colCommand.CancelImageUrl = "~/App_Themes/Content/Imagenes/cancel.gif";
            colCommand.UpdateImageUrl = "~/App_Themes/Content/Imagenes/accept.gif";
    
            colCommand.ItemStyle.HorizontalAlign = HorizontalAlign.Center;
            this.C1GridView1.Columns.Add(colCommand);
    
    			// NEW
    			//var col = ((C1BoundField)this.C1GridView1.Columns[0]);
    			var col = ((C1.Web.Wijmo.Controls.C1GridView.C1BoundField)this.C1GridView1.Columns[0]);
    
    			col.Visible = true;
                col.RowMerge = C1.Web.Wijmo.Controls.C1GridView.RowMerge.Free; // RowMerge.Free;
    
                // NEW
                col.GroupInfo.GroupSingleRow = false;
    
    			col.AllowGroup = false; // NOT COMPILES

    Any suggestions?

    thanks, regards

  • Posted 9 January 2026, 3:12 am EST

    Hello,

    Setting GroupInfo.Position property groups the columns. So, you can remove AllowGroup property and use the GroupInfo.Position property instead as follows:

    var col = (C1BoundField)C1GridView1.Columns[0];
    
    // 2025v2 Grouping Logic
    col.GroupInfo.GroupSingleRow = false;
    col.GroupInfo.Position = GroupPosition.Header; 
    col.GroupInfo.OutlineMode = OutlineMode.StartExpanded; 

    Please refer to the attached sample for implementation. (see GridView_Grouping.zip)

    Please let us know if it helps.

    Regards,

    Uttkarsh.

  • Posted 26 January 2026, 6:21 am EST

    are require

       AllowColSizing="True"
                    ShowFooter="True"
                    GroupAreaVisible="True"
    

    ???

                <wijmo:C1GridView ID="C1GridView1" runat="server"
                    AutoGenerateColumns="False"
                    AllowColSizing="True"
                    ShowFooter="True"
                    GroupAreaVisible="True"
                    Width="800px">

    offtopic: AutoGenerateColumns vs AutogenerateColumns

  • Posted 27 January 2026, 6:19 am EST

    Hello,

    1. AllowColSizing: property used to set whether columns can be sized. [Ref: https://developer.mescius.com/componentone/docs/webforms/online-gridview/C1.Web.Wijmo.Controls.45~C1.Web.Wijmo.Controls.C1GridView.C1GridView~AllowColSizing.html]

      By default, it is set to False. So, to enable column resizing, you need to set it to True.

    2. ShowFooter: property used to set whether footer row is visible. [Ref: https://developer.mescius.com/componentone/docs/webforms/online-gridview/C1.Web.Wijmo.Controls.45~C1.Web.Wijmo.Controls.C1GridView.C1GridView~ShowFooter.html]

      By default, it is set to False. So, to display footer in grid, you need to set it to True.

    3. GroupAreaVisible: property does not exists. Please remove it and thank you for pointing it out.

    4. AutoGenerateColumns vs AutogenerateColumns: AutogenerateColumns property is correct while AutoGenerateColumns is incorrect. Thank you for pointing it out.

      [Ref: https://developer.mescius.com/componentone/docs/webforms/online-gridview/C1.Web.Wijmo.Controls.45~C1.Web.Wijmo.Controls.C1GridView.C1GridView~AutogenerateColumns.html]

    Regards,

    Uttkarsh.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels