Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reportviewer (rdlc) hide/supress duplicates

Status
Not open for further replies.

johnisotank

Technical User
Joined
Aug 8, 2008
Messages
258
Location
GB
Hi,

I have created a report and the table in this report has the setting 'Hide Duplicates' ticked.

Problem is that even though the duplicate values are now hidden, the row that they would have been displayed on is still there taking up space.

Could someone tell me a way around this because there doesn't look to be a 'point and click' simple solution for me.

Apologies if I've given too little info, didn't want to ramble on with probably useless details...
thanks a lot
John
 
Rather than trying to have the report filter out the dupes, change your dataset to use an SQL statement with DISTINCT. This will have a secondary benefit of less over head from the database by not having to send as much data to the form. To go one step further, put the SQL statement in a Stored Procedure. In the event you have to make a minor change to the query, simply update the Stored Proc instead of the entire application.

"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.
 
Thanks a lot for that, I've heard of DISTINCT before but need to brush up on it so I'll take a look.

Thanks again,
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top