The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a gridDataBoundGrid within a tab page and I''m using the gridPrintToFit example as a guide to print the grid onto a single page.
The printing seems to work, but when I return to the application the grid''s visible size seems to be locked (if I resize the window the visible portion of the grid doesn''t change - white borders surround the existing viewable grid.
This seems to be a result of setting/resetting the gridbounds.
Rectangle saveGridRect = this._grid.GridBounds;
this._grid.GridBounds = new Rectangle(0, 0, gridWidth, gridHeight);
this._grid.DrawGrid(g);
this._grid.GridBounds = saveGridRect;
If I comment out setting/resetting the gridbounds i don''t run into the resizing problem in the application (but, of course the grid doesn''t print). It seems that once I reset the gridBounds, it is locked at that size and no longer will grow/shrink as its parent window grows/shrinks.
any ideas how I can fix this?
thanks,
Tyler