Dictionary DGV 如何绑定?
class Record{
public DateTime SignInTime { get; set; }
public DateTime SignOutTime { get; set; }
public string ID { get; set; }
public string RecorderName { get; set; }
}
现有 Dictionary<string, Record> RecordList = new Dictionary<string, Record>
ID 作为KEY值
现有1个DGV 求如何绑定
假如用 LIST <Record> list =new LIST <Record>();
怎么样 把Dictionary 的Record 赋给LIST呢?
--------------------编程问答-------------------- 路过学习…… --------------------编程问答-------------------- 还是做成一个类吧
类中写成“函数体”
补充:.NET技术 , C#