Solved

How to bind only 1 DataRow Object to the Report?

Posted on 2006-06-25
2
306 Views
Last Modified: 2008-02-26
Hi there,

I have a strongly typed dataset, now I want to display all the information of only 1 selected Row on the Crystal Report. Is there any way to 'bind' this object to the report? (not the passing parameters solution)

I've tried this ...

In VS2005, in the Report Designing page,
I added 1 Data Source of Type Object and chosed an DataRow object, then renamed it to "myDataSetName". Then I passed the Row need to be displayed using the following statement:

myReportViewer.LocalReport.DataSources.Add(new ReportDataSource("myDataSetName", myDataRowObject));

... but it gave me an ArgumentException:
Value does not fall within the expected range.

Anyone could help me please?
Thanks in advance,
pckben.
0
Comment
Question by:pckben
2 Comments
 

Author Comment

by:pckben
ID: 17024655
ok i found my own answer:
use a BindingSource object to bind to the specific DataRow, then
myReportViewer.LocalReport.DataSources.Add(new ReportDataSource("myDataSetName", myBindingSourceObject));
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 17025424
Closed, 125 points refunded.
GhostMod
Community Support Moderator
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now