Ticket Q211291
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Datalayoutcontrols change default editors

DataLayoutControl Controlitem

created 16 years ago

Hello, i've got following Problem/Question by using the DataLayoutControl
When I choose the DataSource of the DataLayoutControl in IDE then the Items/Columns are generated and set automatically.
Now, following steps are bringing me to my Question:

  1. I make a change in "Data Source Binding Manager" from TextEdit.EditValue to MemoEdit.EditValue by a Control "LastName".
  2. In the runtime i'm executing following code, to change/update the Items/Columns of my Table:
            DataLayoutControl1.SetDefaultLayout()
            DataLayoutControl1.DataSource = Nothing
            DataLayoutControl1.DataSource = EmployeesBindingSource
            DataLayoutControl1.RetrieveFields()
            DataLayoutControl1.RestoreDefaultLayout()
  3. As the Result my "LastName" - MemoEdit flyes away in the "Hidden Items" and isn't MemoEdit anymore, was changed to TextEdit again.
    Is it possible, to Save/Restore my own decision, which Control have to be used? And is it possible, that it will not be placed in hidden items?
    When yes - how?
    Best regards,
Comments (1)
DevExpress Support Team 16 years ago

    Hi Sergej,
    The correct solution to this issue is to use the approach shown in the Datalayoutcontrols change default editors thread.
    Thanks,
    Plato

    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.