Home Forums WinForms controls Xceed Grid for WinForms Hide Group Expand/Collapse Control Reply To: Hide Group Expand/Collapse Control

User (Old forums)
Post count: 23064

Thanks André,

I’m finding it is hiding the entire contents of the header row.

I was getting an error regarding ‘m_buttonRectangle’ not existing in the current context, which may have to do with me not inheritng the Xceed namespace, and declaring the all Xceed classes specifically (due to a conflict with existing DataRow objects).  As a result I added a Rectangle declartion in front of it, but I have a feeling I should be redefining an existing object, just not sure where it is.

 My mod as below:

                Rectangle m_buttonRectangle = new Rectangle(0, 0, 0, 0);
                this.Theme.PaintGroup(e.Graphics, m_buttonRectangle, new Xceed.UI.GroupUIState(0), 0);

Imported from legacy forums. Posted by mattdwen (had 791 views)