在 Microsoft Report Viewer 中的表格单元格中一起显示 8 列
我有一个表,它在其单元格中显示一些数据,这些数据来自使用 linq 查询从数据库获取值的方法。我需要做的是在该报告最后一列的单元格中的表格单元格中显示数据库中表格中的 8 列
可以这样做吗?如果可以,我该怎么做? 这是返回报告预期值的代码
List<KurBakiyeDegiskenleri> kurToplamlist = new List<KurBakiyeDegiskenleri>();
var query = from kur in kurToplamlist
//where kurTL.DovizTuruGetSet == dovizTuru
//where kur.KurToplamMiktarGetSet>0
join cariBilg in db.TBLP1CARIs
on kur.CariIdGetSet equals cariBilg.ID
select new
{
cariBilg.K_FIRMAADI,//FIRMA ADI
cariBilg.K_YETKILIADI,//YETKILI ADI
cariBilg.K_FIRMATELEFON,//FIRMA TEL
cariBilg.K_YETKILITELEFON,//YETKILI TEL
BAKIYE = kur.KurToplamMiktarGetSet,//BAKİYE
};
return query;
I have a table which takes show some data in its cells, which comes from a method using a linq query to get the values from database. What i need to do is tto show 8 columns from a table in the database in a cell of table in the cell of the last column in this Report
Is it possible to do that?And if it is, how can i do that?
Here is the code which returns the values expected by the Report
List<KurBakiyeDegiskenleri> kurToplamlist = new List<KurBakiyeDegiskenleri>();
var query = from kur in kurToplamlist
//where kurTL.DovizTuruGetSet == dovizTuru
//where kur.KurToplamMiktarGetSet>0
join cariBilg in db.TBLP1CARIs
on kur.CariIdGetSet equals cariBilg.ID
select new
{
cariBilg.K_FIRMAADI,//FIRMA ADI
cariBilg.K_YETKILIADI,//YETKILI ADI
cariBilg.K_FIRMATELEFON,//FIRMA TEL
cariBilg.K_YETKILITELEFON,//YETKILI TEL
BAKIYE = kur.KurToplamMiktarGetSet,//BAKİYE
};
return query;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在字段中使用表达式
= Fields!col1.Value & ” ” &字段!col2.Value
You could use an expression in the field
= Fields!col1.Value & " " & Fields!col2.Value