Print a DataGridView
-
In my program I have a DataGridView control on each TabPage in a TabPageControl, all DataGridViews have the same number and kind of columns. Now when the user clicks Print I want to amalgamate all the rows into one large DataGridView and print it. The first part is obvious but how would I print only the DataGridView?
-
In my program I have a DataGridView control on each TabPage in a TabPageControl, all DataGridViews have the same number and kind of columns. Now when the user clicks Print I want to amalgamate all the rows into one large DataGridView and print it. The first part is obvious but how would I print only the DataGridView?
You wouldn't, b/c the control itself never shows all the records. You'd iterate over the record set and write seperate printing code to print it all.
Christian Graus Driven to the arms of OSX by Vista.
-
You wouldn't, b/c the control itself never shows all the records. You'd iterate over the record set and write seperate printing code to print it all.
Christian Graus Driven to the arms of OSX by Vista.
-
If you start printing the second datagrid from the point on the page that the first one ends at, and so on, you should get effectively one printed grid.
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd