Hi,
when I load a grid layout with LoadFromXml(), and the layout contains a column with a ValueList, the dropdown list does not appear.
You see the down-arrow button of the combobox in the cell, but there are no items.
I have to manually set the ValueList property for the column again to see the values of the list.
This also happens when using a BindableValueList.
Is this a bug or did I do anything wrong?
Thanks for your help.
I tried this out and it works just fine for me. I am attaching my sample here.
Run the sample. You can see that the ValueList is applied because the cells in the grid column are displaying string instead of ints.
Click Save Layout.
Then click Reset Layout.
The ValueList is now gone and the column shows ints.
Click Load Layout.
The column once again shows strings, so the ValueList has been reapplied.
For example, I create the ValueList this way:
This works normally.
If I save and load the grid layout, the ValueList is not assigned to the column any more.
How are you creating your ValueLists and how you are attaching them to the grid?
I'm not sure, but the grid might not be able to save the ValueList along with the grid layout unless you add it to the grid.DisplayLayout.ValueLists collection.