<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setting the header height on a DataGrid control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: abhishek</title>
		<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/comment-page-1/#comment-3393</link>
		<dc:creator>abhishek</dc:creator>
		<pubDate>Tue, 21 Apr 2009 14:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/#comment-3393</guid>
		<description>hello frnds,
could we set corner radious to datagrid?
thx u in advanced,
abhishekchess1@gmail.com
:)</description>
		<content:encoded><![CDATA[<p>hello frnds,<br />
could we set corner radious to datagrid?<br />
thx u in advanced,<br />
<a href="mailto:abhishekchess1@gmail.com">abhishekchess1@gmail.com</a><br />
:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/comment-page-1/#comment-3394</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sun, 17 Aug 2008 04:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/#comment-3394</guid>
		<description>Hi Peter,
Since we can set the height of a header in a datagrid is it also possible to have more than one line of text in the header display? This would be to help shorten column width when you have long header names.
BTW.. I love this site!!</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
Since we can set the height of a header in a datagrid is it also possible to have more than one line of text in the header display? This would be to help shorten column width when you have long header names.<br />
BTW.. I love this site!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dub</title>
		<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/comment-page-1/#comment-3386</link>
		<dc:creator>dub</dc:creator>
		<pubDate>Tue, 24 Jun 2008 15:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/#comment-3386</guid>
		<description>Hey Peter,

I read your articles on adobe about customizing data grids in flash. At the end of
http://www.adobe.com/devnet/flash/quickstart/datagrid_pt3/

you show how to add a custom UILoader to the data grid and hint at the idea of being able to do the same with checkboxes, buttons, movieclips etc.

The only examples I have been able to find so far for these are AS2 versions that extend UIObject, not implement ICellRenderer.

Could you help me out in any way?</description>
		<content:encoded><![CDATA[<p>Hey Peter,</p>
<p>I read your articles on adobe about customizing data grids in flash. At the end of<br />
<a href="http://www.adobe.com/devnet/flash/quickstart/datagrid_pt3/" rel="nofollow">http://www.adobe.com/devnet/flash/quickstart/datagrid_pt3/</a></p>
<p>you show how to add a custom UILoader to the data grid and hint at the idea of being able to do the same with checkboxes, buttons, movieclips etc.</p>
<p>The only examples I have been able to find so far for these are AS2 versions that extend UIObject, not implement ICellRenderer.</p>
<p>Could you help me out in any way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Luis Garcia</title>
		<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/comment-page-1/#comment-3392</link>
		<dc:creator>Jose Luis Garcia</dc:creator>
		<pubDate>Wed, 18 Jun 2008 17:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/#comment-3392</guid>
		<description>Thank you very much peter

I really appreciate the time you expend in the solutions you propose.

I will keep your advise and try this out on FlexCoders mailing list.

Again thank you very much.</description>
		<content:encoded><![CDATA[<p>Thank you very much peter</p>
<p>I really appreciate the time you expend in the solutions you propose.</p>
<p>I will keep your advise and try this out on FlexCoders mailing list.</p>
<p>Again thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/comment-page-1/#comment-3390</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Wed, 18 Jun 2008 02:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/#comment-3390</guid>
		<description>Jose Luis Garcia,

I&#039;ve never tried this, so I don&#039;t know how well these suggestions will work (if at all). You may want to ask on the FlexCoders mailing list.

Idea #1: Use a custom item renderer (Label or something) which sets the &lt;code&gt;useHandCursor&lt;/code&gt; and &lt;code&gt;buttonMode&lt;/code&gt; properties:
&lt;pre class=&quot;code&quot;&gt;
&lt;mx:DataGrid dataProvider=&quot;{arr}&quot;&gt;
    &lt;mx:columns&gt;
        &lt;mx:DataGridColumn dataField=&quot;col1&quot; /&gt;
        &lt;mx:DataGridColumn dataField=&quot;col2&quot; /&gt;
    &lt;/mx:columns&gt;
    &lt;mx:itemRenderer&gt;
        &lt;mx:Component&gt;
            &lt;mx:Label useHandCursor=&quot;true&quot; buttonMode=&quot;true&quot; mouseChildren=&quot;false&quot; /&gt;
        &lt;/mx:Component&gt;
    &lt;/mx:itemRenderer&gt;
&lt;/mx:DataGrid&gt;
&lt;/pre&gt;

Idea #2: Extend the DataGrid control and override the protected &lt;code&gt;drawRowBackground()&lt;/code&gt; method and set the &lt;code&gt;useHandCursor&lt;/code&gt; and &lt;code&gt;buttonMode&lt;/code&gt; properties on the &lt;code&gt;listContent&lt;/code&gt; property.
&lt;pre class=&quot;code&quot;&gt;
package comps {
    import flash.display.Sprite;

    import mx.controls.DataGrid;

    public class MyDataGrid extends DataGrid {
        public function MyDataGrid() {
            super();
        }

        override protected function drawRowBackground(s:Sprite,
                    rowIndex:int,
                    y:Number,
                    height:Number,
                    color:uint,
                    dataIndex:int):void {
            super.drawRowBackground(s, rowIndex, y, height, color, dataIndex);

            listContent.buttonMode = true;
            listContent.useHandCursor = true;
            listContent.mouseChildren = false;
        }
    }
}
&lt;/pre&gt;

Again, I&#039;ve never tried this before and I expect there is a much better approach out there.

Peter</description>
		<content:encoded><![CDATA[<p>Jose Luis Garcia,</p>
<p>I&#8217;ve never tried this, so I don&#8217;t know how well these suggestions will work (if at all). You may want to ask on the FlexCoders mailing list.</p>
<p>Idea #1: Use a custom item renderer (Label or something) which sets the <code>useHandCursor</code> and <code>buttonMode</code> properties:</p>
<pre class="code">
&lt;mx:DataGrid dataProvider="{arr}"&gt;
    &lt;mx:columns&gt;
        &lt;mx:DataGridColumn dataField="col1" /&gt;
        &lt;mx:DataGridColumn dataField="col2" /&gt;
    &lt;/mx:columns&gt;
    &lt;mx:itemRenderer&gt;
        &lt;mx:Component&gt;
            &lt;mx:Label useHandCursor="true" buttonMode="true" mouseChildren="false" /&gt;
        &lt;/mx:Component&gt;
    &lt;/mx:itemRenderer&gt;
&lt;/mx:DataGrid&gt;
</pre>
<p>Idea #2: Extend the DataGrid control and override the protected <code>drawRowBackground()</code> method and set the <code>useHandCursor</code> and <code>buttonMode</code> properties on the <code>listContent</code> property.</p>
<pre class="code">
package comps {
    import flash.display.Sprite;

    import mx.controls.DataGrid;

    public class MyDataGrid extends DataGrid {
        public function MyDataGrid() {
            super();
        }

        override protected function drawRowBackground(s:Sprite,
                    rowIndex:int,
                    y:Number,
                    height:Number,
                    color:uint,
                    dataIndex:int):void {
            super.drawRowBackground(s, rowIndex, y, height, color, dataIndex);

            listContent.buttonMode = true;
            listContent.useHandCursor = true;
            listContent.mouseChildren = false;
        }
    }
}
</pre>
<p>Again, I&#8217;ve never tried this before and I expect there is a much better approach out there.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Luis Garcia</title>
		<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/comment-page-1/#comment-3387</link>
		<dc:creator>Jose Luis Garcia</dc:creator>
		<pubDate>Tue, 17 Jun 2008 22:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/#comment-3387</guid>
		<description>Thank you for your tutorials.

It’s possible to set a handCursor to a DataGrid Control?

I mean not only the Headers but the list too, preserving the list properties like the roll over and the selected Item color while using the hand cursor on the rows.

I try this example but it&#039;s seems that not work properly.

&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;absolute&quot;&gt;
    &lt;mx:Array id=&quot;arr&quot;&gt;
        &lt;mx:Object col1=&quot;1.One&quot; col2=&quot;1.Two&quot; /&gt;
        &lt;mx:Object col1=&quot;1.One&quot; col2=&quot;1.Two&quot; /&gt;
        &lt;mx:Object col1=&quot;1.One&quot; col2=&quot;1.Two&quot; /&gt;
        &lt;mx:Object col1=&quot;1.One&quot; col2=&quot;1.Two&quot; /&gt;
        &lt;mx:Object col1=&quot;1.One&quot; col2=&quot;1.Two&quot; /&gt;
    &lt;/mx:Array&gt;
	&lt;mx:DataGrid useHandCursor=&quot;true&quot; buttonMode=&quot;true&quot; dataProvider=&quot;{arr}&quot;&gt;
		&lt;mx:columns&gt;
           &lt;mx:DataGridColumn dataField=&quot;col1&quot; /&gt;
           &lt;mx:DataGridColumn dataField=&quot;col2&quot; /&gt;
		&lt;/mx:columns&gt;
	&lt;/mx:DataGrid&gt;
&lt;/mx:Application&gt;
&lt;/pre&gt;

Thank you for your time.</description>
		<content:encoded><![CDATA[<p>Thank you for your tutorials.</p>
<p>It’s possible to set a handCursor to a DataGrid Control?</p>
<p>I mean not only the Headers but the list too, preserving the list properties like the roll over and the selected Item color while using the hand cursor on the rows.</p>
<p>I try this example but it&#8217;s seems that not work properly.</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"&gt;
    &lt;mx:Array id="arr"&gt;
        &lt;mx:Object col1="1.One" col2="1.Two" /&gt;
        &lt;mx:Object col1="1.One" col2="1.Two" /&gt;
        &lt;mx:Object col1="1.One" col2="1.Two" /&gt;
        &lt;mx:Object col1="1.One" col2="1.Two" /&gt;
        &lt;mx:Object col1="1.One" col2="1.Two" /&gt;
    &lt;/mx:Array&gt;
	&lt;mx:DataGrid useHandCursor="true" buttonMode="true" dataProvider="{arr}"&gt;
		&lt;mx:columns&gt;
           &lt;mx:DataGridColumn dataField="col1" /&gt;
           &lt;mx:DataGridColumn dataField="col2" /&gt;
		&lt;/mx:columns&gt;
	&lt;/mx:DataGrid&gt;
&lt;/mx:Application&gt;
</pre>
<p>Thank you for your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/comment-page-1/#comment-3389</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Tue, 17 Jun 2008 20:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/#comment-3389</guid>
		<description>Nick,

Try the Flex 3 Getting Started guide, http://learn.adobe.com/wiki/display/Flex/Getting+Started

It has several examples using PHP, ColdFusion, Java, and ASP.
Apart from that, try the Adobe Flex Developer Center (&lt;a href=&quot;http://www.adobe.com/devnet/flex/&quot; rel=&quot;nofollow&quot;&gt;http://www.adobe.com/devnet/flex/&lt;/a&gt;) or asking on the FlexCoders list.

Peter</description>
		<content:encoded><![CDATA[<p>Nick,</p>
<p>Try the Flex 3 Getting Started guide, <a href="http://learn.adobe.com/wiki/display/Flex/Getting+Started" rel="nofollow">http://learn.adobe.com/wiki/display/Flex/Getting+Started</a></p>
<p>It has several examples using PHP, ColdFusion, Java, and ASP.<br />
Apart from that, try the Adobe Flex Developer Center (<a href="http://www.adobe.com/devnet/flex/" rel="nofollow">http://www.adobe.com/devnet/flex/</a>) or asking on the FlexCoders list.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/comment-page-1/#comment-3388</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 17 Jun 2008 18:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/#comment-3388</guid>
		<description>Hey Peter

Do you know of a good tutorial or example of returning information to flex from a database (images and prices) using php? I&#039;m trying to return these and display them in a tilelist but can&#039;t seem to accomplish it and don&#039;t know if it&#039;s on the php end or the flex end that is not working. ANY advice or direction to go would be highly appreciated!

Thanks

Nick</description>
		<content:encoded><![CDATA[<p>Hey Peter</p>
<p>Do you know of a good tutorial or example of returning information to flex from a database (images and prices) using php? I&#8217;m trying to return these and display them in a tilelist but can&#8217;t seem to accomplish it and don&#8217;t know if it&#8217;s on the php end or the flex end that is not working. ANY advice or direction to go would be highly appreciated!</p>
<p>Thanks</p>
<p>Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raoul</title>
		<link>http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/comment-page-1/#comment-3391</link>
		<dc:creator>Raoul</dc:creator>
		<pubDate>Tue, 17 Jun 2008 08:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/16/setting-the-header-height-on-a-datagrid-control-in-flex/#comment-3391</guid>
		<description>Thanks for this website .. very useful !!</description>
		<content:encoded><![CDATA[<p>Thanks for this website .. very useful !!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

