In GridView's OptionsView, there is a property called "ShowDetailButtons". However, there is no "ShowGroupExpandCollapseButton", or something alike.
Proposed Solution:
Please provide one so that I can hide the group expand/collapse button, just like the way I hide the details expand / collapse button. :)
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Crono,
Thank you for the suggestion. We'll consider implementing this feature in the future. Currently, you can introduce this behavior by handling the CustomDrawGroupRow event as shown below:
Imports DevExpress.XtraGrid.Views.Grid.ViewInfo .... Private Sub gridView1_CustomDrawGroupRow(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Base.RowObjectCustomDrawEventArgs) CType(e.Info, GridGroupRowInfo).ButtonBounds = Rectangle.Empty End Sub
Thanks,
Stan.
"Solution provided"?
You mean you won't add the property and expect developpers to use the CustomDrawGroupRow every time? Why? Why would it have to be like that? The "ShowDetailButtons" property exists already, it seems natural to expect a "ShowGroupExpandCollapseButton" property as well???
The following property has been added:
GridView.OptionsView.ShowGroupExpandCollapseButtons (bool);