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
1763
Description instead of ID in OutlookGroupBy
posted

Hi. I'm working with a winGrid and I have set some columns to be edited with embedded comboboxes, but when I drag one of this columns to the GroupBy area, the elements uses to 'title' the  tree are the IDs and not the Description string displayed in the combos. Is there some configuration in the grid to achieve this? If not, which event should I be handling or what should I do to achieve this functionality? Thanks a lot.

  • 469350
    Offline posted

     This sounds like a bug to me. And I beleive it was fixed recently. Are you using the latest Hot Fix? 

  • 3707
    Verified Answer
    posted

    Try the InitializeGroupByRow event of the grid. By using the e.Row.Description property you can set what you'd like in that description area.

    private void ultraGrid1_InitializeGroupByRow(object sender, InitializeGroupByRowEventArgs e)

    {

    // Set the description to desired value. This is the text that shows up on

    // the group-by row.

    e.Row.Description = "All your rows in this group are belong to us! - " + e.Row.Rows.Count.ToString() + " Items.";

    }