Hi John,

     I am also trying to get colspan for datagrids to work. So far I
have not been succesful. I tried changing the header separator, and I
was actually able to draw the span boxes but it is not the same. I
also tried using header renderes with a HRule in between, it does not
look that pretty though. I will try to extend the datagrid next.

  As for number two, extending the datagrid and overriding the
drawVerticalLine method should do the trick. Something like this:


package {
 import mx.controls.DataGrid;
 import flash.display.*;

 public class myDataGrid extends DataGrid
 {
  public function myDataGrid()
  {
   super();
  }
  
 
 
 override protected function drawVerticalLine(s:Sprite,
colIndex:int, color:uint, x:Number):void
    {
        //draw our vertical lines
        var g:Graphics = s.graphics;
        var thickness:Number = 3; // This is 1 in the original DataGrid
       
        if (lockedColumnCount > 0 && colIndex == lockedColumnCount -
1)
         g.lineStyle(thickness, 0, 100);
        else
         g.lineStyle(thickness, color, 100);
        g.moveTo(x, 1);
        g.lineTo(x, listContent.height);
    }
 }
}

--- In [email protected], "John Mazzocchi" <[EMAIL PROTECTED]> wrote:
>
> Thanks, interesting ... I'm not sure it solves my problem though.
>
> John
>
> -----Original Message-----
> From: Douglas Knudsen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 19 October 2006 12:48 PM
> To: [email protected]
> Subject: Re: [flexcoders] Equivalent of colspan for datagrid?
>
>
> http://www.cynergysystems.com/blogs/page/andrewtrice?entry=changing_the_header_separator_on
> just ran across this today, could help.
>
> DK
>
>
> On 10/18/06, John Mazzocchi < [EMAIL PROTECTED] wrote:
>
> Hi
>
> actually I have two questions:
>
> 1. Is there an equivalent of colspan for datagrids? Do I need to play with headerRenderer perhaps? I just want to place a heading sitting over two others.
>
> 2. Is there a way to draw (thicker) vertical lines between two columns. I noticed a function drawVerticalLine() in the help files, but I'm not ssure how to use it. Any examples would be greatly appreciated.
>
> Cheers
> John
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to