Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Grid Tech Support » Expand groups through code Collapse All
Subject Author Date
David Ferreira May 1, 2007 - 1:58 PM

I am currently evaluating ElegantGrid for use in one of my client’s projects.

I have a bound data grid loaded and grouped as desired, but so far I have been unable to figure out how to expand and collapse all groups through code. I have the groups by default collapsed, but I want to have buttons on the form which will expand and collapse all for the user.

Is this possible, and if so how?

-Dave Ferreira

Technical Support May 3, 2007 - 7:04 AM

In fact, there is no such API in the bound grid that allows you to expand and collapse grouped rows. In other words, a group row , which has a plus or minus sign, is not bound to some row in the data source and you cannot edit its label and expand or collapse the grouped rows below. In fact, a group row is an auxiliary visual element that makes working with tabular data more convenient and when the grid is grouped by a column, it is actually sorted.

If you need to control all the grid elements manually, the unbound grid control can be a good choice. This would allow you to work with rows and cells directly.