Answer the question
In order to leave comments, you need to log in
How to make a hierarchical view of a DataGrid?
Good day! There was a need to make a table with a hierarchy of 2 levels, as in TreeView. Something like this:
I work with MVVM where there are 2 model classes:
public class part
{
public int id { get; set; }
public int partNumber { get; set; }
public double mBrutto { get; set; }
public double mNetto { get; set; }
public bool exported { get; set; }
public Nullable<DateTime> dataOtgr { get; set; }
public List<paket> ListPaket { get;set; }
}
public partial class paket
{
public int id { get; set; }
public int paketNumber { get; set; }
public Nullable<System.DateTime> dataUpack { get; set; }
public int smena { get; set; }
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question