Grouping ListViews

Hello:

I Have this two Models:

Model Trabajos

    public class T_trabajos
    {
        [Key]
        public int Id_Trabajo { get; set; }
        [Required]
        public int Id_Cliente { get; set; }
        [Required]
        public int Id_Tatuador { get; set; }
        [Required]
        public string Asunto { get; set; }
        public int? Id_Caract { get; set; }
        [Required]
        public decimal Total_Aprox { get; set; }
        [Required]
        public decimal Costo_Cita { get; set; }
    }

Model Citas

    public class T_trabajocitas
    {
        [Key]
        public int Id_Cita { get; set; }
        [Required]
        public int Id_Trabajo { get; set; }
        [Required]
        public DateTime F_Inicio { get; set; }
        [Required]
        public DateTime F_Fin { get; set; }
        [Required]
        public TimeSpan H_Inicio { get; set; }
        [Required]
        public TimeSpan H_Fin { get; set; }
        [Required]
        public string Asunto { get; set; }
        [Required]
        public bool Completa { get; set; }
        [Required]
        public int Id_Cliente { get; set; }
        [Required]
        public int Id_Tatuador { get; set; }
    }

I Have an ObservableCollection foreach of them in a View Model.

What I What is in a ListView, group both ObservableColleccions.

The ObservableCollection for Trabajos Model has to be the Header.
The ObservableCollectionfor Citas Model has the Items.

Any sugestion to do that...

Answers

Sign In or Register to comment.