Datagridview and Report designer
Posted: Thu Jun 04, 2009 8:55 am
Hi there,
i have a question using Datagridview.
Let me say we have differents set of Datagridviews in our Form with different Columns
Firstname, Surename, Birthday, ColumnX
I want to give these rows and columns direct to the report designer.
Each Datagridview looks different, so i can't set a fix Column1, Column2 etc. in my Report design. This have to be done by code. Any hints ?
Is there a way to archieve this ?.
The need is our Application has different Views of Data where the number of Columns differ and we want our customers to be able to print the
Datagridview they see at the application direct as a kind of report.
Ok I found a sample called "PrintGrid" or "PrintTable". Problem is, the Size of the columns are calculated off total size of page / Numberofcolumns".
What if my Datagrid has 20 Columns then each column is only 1 cm width. Is there a way to get those columns on another page ?
like
Column1, Column2, Column3, Column4, -------- Page 1 Other Columns dont fit horizontally on first page so put them on the 2nd... etc.
Column5, Column6, Column7, Column8, ---- Page 2 ?
a kind like Execel does it ?
Thx
Stephan
i have a question using Datagridview.
Let me say we have differents set of Datagridviews in our Form with different Columns
Firstname, Surename, Birthday, ColumnX
I want to give these rows and columns direct to the report designer.
Each Datagridview looks different, so i can't set a fix Column1, Column2 etc. in my Report design. This have to be done by code. Any hints ?
Is there a way to archieve this ?.
The need is our Application has different Views of Data where the number of Columns differ and we want our customers to be able to print the
Datagridview they see at the application direct as a kind of report.
Ok I found a sample called "PrintGrid" or "PrintTable". Problem is, the Size of the columns are calculated off total size of page / Numberofcolumns".
What if my Datagrid has 20 Columns then each column is only 1 cm width. Is there a way to get those columns on another page ?
like
Column1, Column2, Column3, Column4, -------- Page 1 Other Columns dont fit horizontally on first page so put them on the 2nd... etc.
Column5, Column6, Column7, Column8, ---- Page 2 ?
a kind like Execel does it ?
Thx
Stephan