Quantcast
Viewing all articles
Browse latest Browse all 18858

Print Preview like control which handler Column Overflow using WPF DataGrid

Hi,

I have 100 records of student and each contains 50 properties(Attributes) ex (Name,Roll No, Address, Mob No. etc).

Now I want to show these records in the table format as:

I am considering Paper Size as A4,

Suppose number of columns can be displayed on A4 page are 25

and number of Rows can be displayed are 60

Now I want to create seperate pages as:

Page Number 1 will show first 60 rows with 1 to 25 columns

page number 2 will show 61 to 100 with same 1 to 25 columns

Now Page number 3 will show first 60 rows with 25 to 50 columns

and Page number 4 will show 61 to 100 rows with 25 to 50 columns.

This is something similar to Excel: when we try to print more columns which can't be fit on page.

Note: I want to show all the pages in scroll viewer , not like we show in FlowDocumentViewer.

How I can achieve this?


Wajeed



Viewing all articles
Browse latest Browse all 18858

Trending Articles