populating Crystal Reports from DataGrid data

B

Brock

I am trying to populate a Crystal Report from data in my DataGrid.
The
reason for this is that I want the user to be able to change values
without updating the database, but still have their report reflect
the
values they anticipate committing to see hypothetical totals of
columns from a set of records. These records are displaying properly
on my DataGrid but I'm not sure how to get Crystal Reports 10 to use
as its datasource the dataset in memory that could be had directly
from the datagrid.

I'm guessing I need to Dim a new DataSet, populate it from the
datagrid, and set the new dataset as the datasource for CR. But how?


How can I specify that the Datagrid's DataSource property can be
explicitly cast as a DataSet object that CR can pick up. And how in
CR
do I tell it that this resultingDataSet is what it needs for the
report?


I found a snippet of code that may work as PART of the solution, but
I
need a little direction.
Private Sub FillDataSet(ByVal DataFromGrid As DataSet)
DataFromGrid = CType(dgEmployees.DataSource, DataSet)
End Sub
 
S

sloan

And you really need to not multi post.

I've added some replies in the framework.aspnet newsgroup.
 
B

Brock

In all due respect I am simply trying to understand the concepts for
which I am granted a newbie at. Different individuals frequent
different newsgroups and each has their own perspective on how to
assit with problem solving. I was having difficulty understanding how
to begin, even remotely, to construct code to capture the session
information and make it available to Crystal Reports, plus the
challenge of how to on the CR side to let it know where the dataset
resides and how to capture it as its datasource. I meant no offense in
double posting, I'm just a beginner trying to understand a 'real-
world' programming challenge that the textbooks due a pitiful job of
presenting. And again thanks for taking interest in my post. If you
can help any further I would love to continue, but the solution as
presented is just over my head.
thanks Brock
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top