How can I get rid of the colon when grouping

3 posts, 1 answers
  1. kfrancis
    kfrancis avatar
    69 posts
    Member since:
    Dec 2008

    Posted 11 Nov 2009 Link to this post

    Hi,

    I'm trying to display a grid that groups by a field called SubCat and I would like it to only display the SubCat field alone. My groupByExpression is "SubCat [ ] Group By SubCat"

    Which gives me something like:

    : Category 1
    : Category 2

    when I would optimally want:

    Category 1
    Category 2

    Any way I can go about getting this result? I've tried the following GroupByExpression's:
    Group By SubCat
    [SubCat] Group By SubCat
    [ ] Group By SubCat

  2. Answer
    Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 11 Nov 2009 Link to this post

    If you follow the steps outlined in the Customizing GridGroupHeaderItem documentation article you can get rid of the colons (and you can basically have it display anything).
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. kfrancis
    kfrancis avatar
    69 posts
    Member since:
    Dec 2008

    Posted 11 Nov 2009 Link to this post

    Thanks!

    That was exactly what I needed to do.
Back to Top