Home Forums WinForms controls Xceed Grid for WinForms How to Remove Expand Indicator?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15382 |

    Hi,

    How to Remove Expand Indicator in GridControl? I’ve got the Group but I don’t wanna display the +/- indicator in front of the cell.

    B/R
    Ferrero

    Imported from legacy forums. Posted by ferreroqut (had 2376 views)

    User (Old forums)
    Member
    Post count: 23064

    This is possible only if you derive from the GroupManagerRow class, and provide your own GroupManagerRow, in which you will not draw the expansion icon.
    <a href=”http://www.xceedsoft.com/cs/download/XceedGrid/CSharp/CS2003_GRD_CustGroupManagerRow.zip”>Here</a&gt; is a sample application that demonstrate how to override the GroupManagerRow, and how to move the icon. You can simply comment the following line so the icon is not drawn :

    this.Theme.PaintGroup( e.Graphics, m_buttonRectangle, groupUIState, 1 );

    You will also need to modify the OnClick event override, so not to respond to the click. There is also the DoubleClick event you may want to override, since the DoubleClick on the regular GroupManagerRow expends/collapses the group.

    Imported from legacy forums. Posted by André (had 248 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi AndreC,

    It works fine. Thank you very much for your timely help.

    B/S
    Ferrero

    Imported from legacy forums. Posted by ferreroqut (had 3587 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.