How do I hide Group Headings?

4 posts, 0 answers
  1. Howard
    Howard avatar
    5 posts
    Member since:
    Aug 2009

    Posted 19 Aug 2015 Link to this post

    How do I hide group row headings (see attached image) without affecting the group footers?

    I am using 2015 Q2.

     

    Thanks,

    Howard

  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 20 Aug 2015 Link to this post

    Hi Howard,

    Thank you for writing.

    You can use the ViewCellFormatting event and remove the text:
    void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
    {
        if (e.Row is GridViewGroupRowInfo)
        {
            e.CellElement.Text = "";
        }
    }

    Please let me know if there is something else I can help you with. 
     
    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Howard
    Howard avatar
    5 posts
    Member since:
    Aug 2009

    Posted 20 Aug 2015 in reply to Dimitar Link to this post

    That did not work. All it did was to wipe out the text. I don't want the rows to appear.

    I tried e.Height = 0, but that didn't work either.

    In previous versions (prior to 2015 Q2) radGridView1.TableElement.GroupHeaderHeight = 0;

    Howard 

     

  5. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 25 Aug 2015 Link to this post

    Hello Howard,

    Thank you for writing back.

    I have tested this locally and the rows are hidden when the GroupHeaderHeight is set to 0. I have tested this with the latest and the Q1 2015 SP1 versions and the results are the same. This is why I have attached my test project. Could you please check it and let me know how it differs from your real setup? 

    In addition could you please specify which previous version you have used?

    Thank you in advance for your patience and cooperation. 
     
    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top