我试图在运行时从返回的LINQ查询结果中的DataTable构建我的TreeView。返回的字段如下:
我错过了什么?
名称 = CaseNoteID | ContactDate | ParentNote
类型 = Guid | DateTime | Guid
"ParentNote=ea8428e4-1274-42e8-a31c-f57dc2f189a4"
我错过了什么?
var tmpCNoteID = dr["CaseNoteID"].ToString();
var filter = "ParentNote="+tmpCNoteID;
DataRow[] childRows = cNoteDT.Select(filter);