This is a migrated thread and some comments may be shown as answers.

[Solved] Grid in-form with combobox

0 Answers 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Wescley
Top achievements
Rank 1
Wescley asked on 07 May 2012, 03:22 PM
Hello,
I'm using the ASP.NET MVC Razor Grid editing (in-form), please I would like to know how can I use a combobox for edit a complex type (List<UF>) dentro do formulário.

The main class is:
public class PessoaEndereco
    {
        public int Id {get;set;}

        public string Logradouro {get;set;}

        public DateTime Data {get;set;}

        public List<UF> UFs { get; set; }
    }

  public class UF
    {
        public int Id { get; set; }
        public string Sigla { get; set; }
    }

The grid in form is recognizing the other types automatically (string, int and datetime) but the complex type that I am trying to use a combobox, is not working as expected.

Hope you can help me.

Thanks
Tags
Grid
Asked by
Wescley
Top achievements
Rank 1
Share this question
or