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
1034
Changing grouped row text
posted

Hello,

We are using the parent child in the WinGrid, because we were not have any help on using the WinTree to achieve this.  But it is fine if we do this:

 

We need the grouped row to have the text of the parent name and not the parent ID. For example:

PanretID=1 ParentName="Cat1"

I will tell the WinGrid to sort it by the PanretID, but I want it to display Cat1 and not the default text which it displays as "ParentID: (20) items".

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    The more general solution to modifying the text that is shown in the GroupByRow is to use the GroupByRowDescriptionMask property.  In your case, however, it looks like you want to show more text so you could handle the InitializeGroupByRow event and set e.Row.Description as you see fit.

    -Matt

Children