I'm pretty sure there is a simple answer to this, but it's killing me why I cant figure this out. I'm trying to populate a treeview based on a 5-character string.
public List<string> lst = new List<string>();
lst.Add("10000");
lst.Add("11000");
lst.Add("11100");
lst.Add("12000");
lst.Add("12100");
lst.Add("20000");
lst.Add("21000");
lst.Add("22000");
I'm trying to get the above in this type of tree
Again, I'm sure it is old hat to many experienced C# developers, but I just can't figure out a simple recursive or linq solution.