Can I use a datagridview as source for a crystal report ?

  • Thread starter Screaming Eagles 101
  • Start date
S

Screaming Eagles 101

And if it's possible, how can I do this please ?

--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It's nice to be important, but it's more important to be nice!]
----------------------------------------------------------------
 
S

Screaming Eagles 101

Terry said:
What is the DataSource for the DataGridView? And why not just use that?
--
Terry


Screaming Eagles 101 said:
And if it's possible, how can I do this please ?

--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It's nice to be important, but it's more important to be nice!]
You're absolutely right... I was trying to invent the wheel again I guess.
I can use the datatable which I use for the datagridview... :-/

Reason for my thinking : I have some unvisible columns in the DGV,
with some keys as value to use on a doubleclick event, I don't show them,
but are nescessary for editing the underlaying record.

Of course I don't want to show the key in the report, so I have a bit of
work
on my hands (and I didn't use Crystal "deeply" yet)

-> I'll have to make the key-column unvisible in my report

-> other difficult issue: I would like to build a report dynamicaly,
since I have a listbox with several reports a user can choose,
the DGV shows different results, amounts of columns, etc...
I would like to build just one Crystal Report at runtime depending
on what the DGV shows and depending on its datasource.

I guess I will have to Google a bit to find something useful...

Also weird is that you have to attach some 'dummy' table
at design time to get rid of the error "no table attached to report"
before you can set a datatable at runtime as the report's datasource...

--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It's nice to be important, but it's more important to be nice!]
----------------------------------------------------------------
 

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