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
470
Expand Groups on runtime?
posted

Hallo!

How can I expand a Ultrawingrid group on runtime?

I have got a Wingrid with one band, grouped by month name ("01- January", "02 - February", ...). The groups are generally not expanded when I open the form. I want to expand the group of the actual month when I open the form.

select case month(now.date)

case 1

'expand group of  "01 - January"

 

 

...

end select

What is the code for expanding?

 

Thank you.

 

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    UltraGridRow exposes an Expanded property, which you can set to true to expand the row (UltraGridGroupByRow derives from UltraGridRow) You can handle the InitializeGroupByRow event and use that event as a trigger for expanding the GroupBy row.

Children