0
这是我的爱好,我有一个名为Plantilla的类,它包含几个允许在wpf中绑定gridview的属性,所以这已经在工作,但用户告诉我他们需要通过数据库中的某个字段重新组合查询,所以我准备这个片段:如何通过查询读取LINQ组?
var dsTemplates = (from t in db.PLANTILLAs
join q in db.EQUIPOs on t.codigoequipo equals q.codigoequipo
where t.codigoestudio.Substring(5, 1).Equals(codigoModalidad)
orderby t.tituloplantilla
group new Plantilla
{
codigoplantilla = t.codigoplantilla,
codigoequipo = t.codigoequipo,
nombreequipo = q.nombreequipo,
codigoestudio = t.codigoequipo,
conclusion = t.conclusion,
hallazgo = t.hallazgo,
nombreexamen = t.tituloplantilla,
tecnica = t.tecnica
} by t.codigoestudio
).ToList();
formTemplates.dlstPlantillas.ItemsSource = dsTemplates;
db.Connection.Close();
现在我的问题是我如何阅读以下内容?在Hashtable中?我怎么能把一个泛型转换成一个Hashtable?因为我现在已经列表时,T是我的课Plantilla
我绑定到一个GridView的,所以当我想从电网IM的价值越来越例外
调试表明我这是我的新类型为Collection gridview.SelectedItems [0];
[0] = {System.Data.Linq.SqlClient.ObjectReaderCompiler.Group<string,Demo.View.Plantilla>}
即时通讯使用WPF,与网格和ListView在哪里可以找到该属性? – 2009-02-19 16:19:21