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:
- I make a change in "Data Source Binding Manager" from TextEdit.EditValue to MemoEdit.EditValue by a Control "LastName".
- 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() - 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,
Hi Sergej,
The correct solution to this issue is to use the approach shown in the Datalayoutcontrols change default editors thread.
Thanks,
Plato