Click here to Skip to main content
11,920,394 members (37,860 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# VB VS2010 VB.NET RDL RDLC , +
I have 2 DataSets
1: Products
2: ProductsDetails
i have table in the report which it's dataset is ProductDetails. in this table there is a column which has the product id.
i want to show the ProductName instead of the ProductID.

i'm looking for the expression, sth like this in rdlc report:

DBDataContext db = new DBDataContext();
this.currentCellValue = db.tbl_Products.Where(p => p.ID == CurrentCellValue).First().Name;
Posted 18-Jan-13 2:40am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


You need to retrieve the correct data from your DB first and then show it on the report. I suggest amending your query.
Hamid Noahdi 22-Jan-13 16:36pm
Yes, you are right, i created a view and passed it to a datasource in report
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I created a view and the passed it to the report

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 415
1 phil.o 170
3 F-ES Sitecore 130
4 RyanDev 120
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,203
3 George Jonsson 2,805
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web02 | 2.8.151120.1 | Last Updated 22 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100