Hi,
I have an issue exporting a gridview to pdf when the gridview has a horizontal scrollbar and is wider than the container.
If I export without scrolling, the columns on the right hand side do not have their actual widths set properly, and are much less wide than the other columns. However, if I first scroll the scroll bar, and then scroll it back, when I export, the columns are the correct width.
Is there a way to programmatically do this? Is there a call on the gridview to auto size or best fit the columns or something like that? Do the columns actually have to be displayed on screen for the export to have the actual widths set?
I have an issue exporting a gridview to pdf when the gridview has a horizontal scrollbar and is wider than the container.
If I export without scrolling, the columns on the right hand side do not have their actual widths set properly, and are much less wide than the other columns. However, if I first scroll the scroll bar, and then scroll it back, when I export, the columns are the correct width.
Is there a way to programmatically do this? Is there a call on the gridview to auto size or best fit the columns or something like that? Do the columns actually have to be displayed on screen for the export to have the actual widths set?