我有一个看起来像这样的类:
public class GeneralStatusInfo
{
public List<string> List_BLNumber { get; set; }
public List<POInfo> List_PONumbers { get; set; }
public List<string> List_Pickup { get; set; }
public List<string> List_Origin { get; set; }
public List<string> List_Destination { get; set; }
public List<string> List_NotifyName { get; set; }
public List<AppmntInformation> List_Appointments { get; set; }
}
当我像这样绑定数据时:
List<GeneralStatusInfo> statusBind = new List<GeneralStatusInfo>();
statusBind.Add(status);
utGeneralStatusInfo.DataSource = statusBind;
SetupTree(status);
它使我的父节点以不同的顺序排列:
Appointment
P/O Number
B/L Number
Origin
Pickup
Notify
Payment
Destination
如何重新排序节点,以便它们以与我在课堂上的顺序相同的顺序出现?