I have a SfDatagrid that is bound to an collection of objects. The object has a property that is a reference to another object. I want to use a GridMultiColumnDropDownList to show all of the available objects and have the selection of the GridMultiColumnDropDownList set the reference property to be that reference object.
If the reference is null I can get the GridMultiColumnDropDownList to set the reference, but if there is an existing reference it will not update the property to the selected object reference.
public class ReferenceOwningClass
{
public int Id { get; set; }
public ReferencedClass Referenced { get; set; }
}
public class ReferencedClass
{
public int Id { get; set; }
public string Name { get; set; }
}
My Xaml looks something like this:
<syncfusion:GridMultiColumnDropDownList
DisplayMember="Id"
HeaderText="Referenced Id"
ItemsSource="{Binding ListOfReferenced}"
MappingName="Referenced">
<syncfusion:GridMultiColumnDropDownList.Columns>
<syncfusion:Columns>
<syncfusion:GridTextColumn HeaderText="Id" MappingName="Id" />
<syncfusion:GridTextColumn
Width="220"
HeaderText="Name"
MappingName="Name" />
</syncfusion:Columns>
</syncfusion:GridMultiColumnDropDownList.Columns>
</syncfusion:GridMultiColumnDropDownList>
Do you have any examples where a GridMultiColumnDropDownList is used to set a property that references an object?
Thanks