1 person found this helpful
override protected function drawVerticalLine(s:Sprite, colIndex:int,
var contentHolder:ListBaseContentHolder = s.parent.parent as
//draw our vertical lines
var g:Graphics = s.graphics;
g.drawRect(x, headerVisible ? 0 : 1, PUT A NEW THICKNESS HERE,
Thank you for your suggestion. I placed the function in Flex4.1/Framework.swc/mx/printing/PrintDataGrid.abc with the other override commands so that it would effect all printdatagrids in the project. I used a breakpoint to make sure that the function was being called, it was. But it had no affect on the printDataGrids. I tried many different values for the new thickness but it always looked the same. Am I doing something wrong?
I would not recommend changing the original source. A subclass should be in
your own source folders, preferably with a different name
I now realise why your override method was not working for me. I had simply pasted the code in without making sure that the required classes were imported. I followed your suggestion and made a cutom actionscript class too, and I made an override for the drawHorizontalLine method too. Now my printouts look great!
Thanks, Flex harUI. I understand overrides a lot better now.