Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Show a combobox in a xamdatagrid using MVVM pattern
posted

Hi,

   I have a c# class which has two properties. One is a string and another is a List object as defined below.

public class MyClass

{

    public string Name {get; set;}

   public List<string> Cities {get;set;}

}

    I want to display the Name property in a column of the datagrid and the list property as a combobox. I'm using MVVM pattern for my development so please advise which is the best way to show these two columns in a datagrid which conforms to the MVVM standards.

 

Thanks,

Ranjith