Jump to content
Software FX Community

Disable group when there's only one item


rvillamilj

Recommended Posts

Hi,

Is there a way to not show a group header if the group only contains one item?

I'm trying to group by orders with products in each order but then if I have a single product order I'd like to just display it without the ' + order: 123 (1) ' header.

 

Please advise, thanks!

 

Ricardo V. 

Link to comment
Share on other sites

Hi, thanks for using Grid FX.  That's an interesting idea, but currently it cannot be done.  There would be several problems with introducing a capability like that.  First, without a group header, the item could appear like it's inside another group (if there is a group above it).  Also, if the grouped column is hidden, which is usually the case, there would be no way to indicate what the actual piece of data is without a group header. 

Can you think of any ways to avoid these pitfalls?

 

Link to comment
Share on other sites

 Hi Stephen, yes, I had thought of those pitfalls and they way I've been handling it is by having alternate colors by group, not by row.  So if I have three items in one group, all three items have the same color and the next group (or single item outside the group) will have a different color and so on.

 Thanks!

 Ricardo 

Link to comment
Share on other sites

Well, that's exactly the goal, to completely hide the title cell when there's only one item in the group.  I created my own solution using a highly customized Repeater control, it wasn't hard at all, but it would've been nice to use the gridfx.  I'll post some pictures once I can get back to fix the colors to make it more user friendly.

Thanks, 

Ricardo. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...