Ticket T552145
Visible to All Users

Grid - Reordering detail tabs in the master-detail view stops working after enabling ShowOnlyPredefinedDetails

created 7 years ago

[DevExpress Support Team: CLONED FROM A2735: How to reorder detail tabs in the master-detail view]

My refresh tab script is not functioning anymore after i set ShowOnlyPredefinedDetails to true.

My tabs are still mixed up =(

Visual Basic
For index = 0 To Form.grdViewMain.DataRowCount If Form.grdViewMain.GetMasterRowExpanded(index) Then Dim openDetailView = Form.grdViewMain.GetVisibleDetailView(index) If Not openDetailView Is Nothing Then Dim tabControl As ViewTab = DirectCast(GetType(BaseView).GetProperty("TabControl", Reflection.BindingFlags.Instance OrElse Reflection.BindingFlags.NonPublic).GetValue(openDetailView), ViewTab) tabControl.Populate() End If End If Next
Comments (1)
Andrew Ser (DevExpress Support) 7 years ago

    Hello Christophe,
    Would you please clarify what the issue you faced is? I created one detail in the grid's level designer, enabled the ShowOnlyPredefinedDetails option and ran your code when clicking a separate button but new tabs didn't appear and the grid kept working as before. I've attached a simple project demonstrating this.
    If possible, modify my sample so that it replicates your scenario and the issue.
    I look forward to your reply.

    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.