Hi guys,
I am using MS Desktop v 9.0.0.197
I have just begin working with the DataGridPrinterLayer and I have some observations. I would like to create the grid so that the headers use a slightly larger or bold font to distinguish them from the data rows. However, if I make the header font a little bit bigger the text of the header sometimes gets too wide and is cut off. If you use the same size font for the headers as the data rows (and do not use a bold font for the headers) the sizing is OK and the text is not cut off. I am using DataGridResizeMode = DataGridResizeMode.AutoFit.
It appears that the grid is using the height of the header font to compute the row height and the width of the text in the data columns to compute the column width. Can this be fixed?
One other small problem. Even though the width of the overall data grid appears correct when looking at the page layout on the computer screen, if you print, there is a bit of an extension of the BackgroundMask that prints to the immediate right of the DataGrid, which makes it appear incorrect. I have attached a pdf to demonstrate. I have also attached a sample project so you can see how I am setting up the DataGridPrinterLayer.
Thanks!
Steve
Data_Grid_Test.zip (1.06 MB)
document.pdf (212 KB)
Column sizing with DataGridPrinterLayer
Hi Steve,
Thanks for your information, I have reproduced the two issue.
I think the first issue should have be solved, please get the fix from 9.0.218.0 or higher version, and let me know whether that’s work well in your side.
The 2nd question looks some “cache” when DataGrid created, it will happen when initialize, zoom in and zoom out, I hadn’t found the reason of it today, any update I will let you know.
Regards,
Don
Hi Steve,
The 2nd problem which data grid print immediate right have been fixed.
Please get this fix in development version 9.0.226.0 or higher.
Regards,
Don
Don,
Will the fix be in the production build (9.0.0.226) as well?
Cheers,
Steve
Hi Steven,
This change still not very stable, I found another issue based on that today, I think our developer will go on working for that later.
And it looks this fix won’t be moved to production build for now. If move that to production build is important for your scenario please let me know.
Regards,
Don
Hi Don,
We can probably use the current grid and just keep the font sizes the same in the columns headers as in the data columns. We can get the fixes when the next production version comes out (May/June?). There is improvement, but even in the current development version I still see some problems with resizing if I use a larger font in the column headers than the data columns. Please let me know of any further progress.
Thanks!
Steve
Hi Steve,
We will have a stable Production version in June, may be in late of May. But I will let the developer to see if we can sync the changes to Production now, I have updated this thread as "In Progress". Once completed, we will update it here.
Thanks,
Johnny
Hi Steve,
We did more enhancement and test for it, I think it should works well now.
We have moved this fix to production edition, so you can get it in both 9.0.238.0 or 9.0.0.238.
If you found anything we missed for this feature please let us know.
Regards,
Don
Don,
I have downloaded the latest production build and the grid is definitely working better. There are some enhancements I would like to see but I will post them in the correct place in the forum.
Thanks!
Steve
Hi Steve,
Thanks for your update. Any question please let us know.
Regards,
Don