GroupInfo code question moving from from WebGrid to GridView

Posted by: jeffrey.hudson on 25 July 2019, 1:26 am EST

  • Posted 25 July 2019, 1:26 am EST

    Can someone tell me the equivalent of these VB statements in C1.Web.Wijmo.Controls.C1GridView? I inherited an old web app and I am attempting to move from C1.Web.C1WebGrid.

    dGrdSearch.Columns(11).GroupInfo.ImageExpanded = ".\Images\minus.gif"
    dGrdSearch.Columns(11).GroupInfo.ImageExpanded = ".\Images\minus.gif"
    dGrdSearch.Columns(11).GroupInfo.OutlineMode = C1.Web.C1WebGrid.OutlineModeEnum.StartExpanded
    dGrdSearch.Columns(11).GroupInfo.Position = C1.Web.C1WebGrid.GroupPositionEnum.Header
    dGrdSearch.Columns(11).GroupInfo.HeaderText = "LISTING FOR {0}"
    dGrdSearch.Columns(11).GroupInfo.HeaderStyle.BackColor = Color.White
    dGrdSearch.Columns(11).GroupInfo.HeaderStyle.Font.Bold = True

  • Marked as Answer

    Replied 25 July 2019, 6:13 pm EST

    Hi Jeffrey,

    Please refer to the documentation below:

    Most of the properties in GroupInfo class are similar in C1WebGrid and C1GridView but HeaderStyle is not present in GroupInfo class for C1GridView. But you can customize the group header using CSS:

    .wijmo-wijgrid .wijmo-wijgrid-groupheaderrow td
    background-color: #FFFFFF;
    font-weight: bold;

Need extra support?

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

Learn More

Forum Channels