Hi,
I wonder if I missed something very simple but I couldn't find it --
I have a grid with row binding to an object. All fields display correctly except the only one with type string[]. I don't see it in the grid at all, during my debug, I see the field existing and it is visible. So I thought I might need to set default editor, so I tried to add XamTextEditor, still no luck, following is digested from my xaml:
<igDP:Field Name="notificationCodes" Label="Notification Codes" Width="100"> <igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igEditors:XamTextEditor}"> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>
notificationCodes is string[] type.
If I change notificationCodes to another field name which is of type string, then it displays.
Any help is appreciated!
Thanks,
Yu
Alex,
Thanks for your help!
In our project, we would like to display some dummy text for string[] field and then use an adorning editor to display value, your example is exactly what I looked for.
Hello Yu,
As the array is IEnumerable, the XamDataGrid will try to display it in a separate field layout. However, if you do not want this and you want it to be displayed in the same fiedlayout, you need to create a style for the CellValuePresenter for that cell and create a template, which will be able to display a collection - for example Itemscontrol. I am attaching a sample with both approaches displayed.