<?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: Toggling a Flex DataGrid control&#8217;s header row</title>
	<atom:link href="http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 14:19:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pszemo</title>
		<link>http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/comment-page-1/#comment-6418</link>
		<dc:creator>pszemo</dc:creator>
		<pubDate>Fri, 20 Nov 2009 18:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/#comment-6418</guid>
		<description>Hi,
is possible to change bottom border at header row?
regards,
pszemo</description>
		<content:encoded><![CDATA[<p>Hi,<br />
is possible to change bottom border at header row?<br />
regards,<br />
pszemo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudiu</title>
		<link>http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/comment-page-1/#comment-886</link>
		<dc:creator>Claudiu</dc:creator>
		<pubDate>Tue, 27 Jan 2009 23:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/#comment-886</guid>
		<description>Yes, I was thinking the same way I have implemented the second solution and integrate the headerHeight=&quot;10&quot; and colors into the design. For the first version they will accept the solution, but in the end I might need to putt together a few lists inside some HDividers and synchronize the data binding and the events or if i will have the time to write some controller from scratch.

Thank you for your time, the blog is fantastic - full of useful hints and inspiration.

Regards.</description>
		<content:encoded><![CDATA[<p>Yes, I was thinking the same way I have implemented the second solution and integrate the headerHeight=&#8221;10&#8243; and colors into the design. For the first version they will accept the solution, but in the end I might need to putt together a few lists inside some HDividers and synchronize the data binding and the events or if i will have the time to write some controller from scratch.</p>
<p>Thank you for your time, the blog is fantastic &#8211; full of useful hints and inspiration.</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/comment-page-1/#comment-887</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 23 Jan 2009 16:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/#comment-887</guid>
		<description>Claudiu,

Excellent question. I don&#039;t think users can resize columns if there isn&#039;t a visible header.
One workaround is to enable the headers when the user rolls over the DataGrid control, as seen in the following example:
&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;&gt;

    &lt;mx:Array id=&quot;arrDP&quot;&gt;
        &lt;mx:Object c=&quot;1&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;2&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;3&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;4&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;5&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;6&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;7&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;8&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;9&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;10&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;11&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:DataGrid id=&quot;dataGrid&quot;
            dataProvider=&quot;{arrDP}&quot;
            showHeaders=&quot;false&quot;
            rollOver=&quot;dataGrid.showHeaders = true;&quot;
            rollOut=&quot;dataGrid.showHeaders = false;&quot; /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

The other workaround would be to always show the data grid headers, but set the &lt;code&gt;headerHeight&lt;/code&gt; property to a small value (such as 2-4). This would still allow users to resize columns, but it wouldn&#039;t display column labels. The only catch is that the sort arrow would still appear, so you would either need to set the &lt;code&gt;sortableColumns&lt;/code&gt; property to &lt;code&gt;false&lt;/code&gt;, or create a transparent icon for the sort arrow (setting the &lt;code&gt;sortArrowSkin&lt;/code&gt; style to &lt;code&gt;null&lt;/code&gt; was problematic).

&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;&gt;

    &lt;mx:Array id=&quot;arrDP&quot;&gt;
        &lt;mx:Object c=&quot;1&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;2&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;3&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;4&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;5&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;6&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;7&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;8&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;9&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;10&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
        &lt;mx:Object c=&quot;11&quot; c1=&quot;One&quot; c2=&quot;Two&quot; c3=&quot;Three&quot; /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:DataGrid id=&quot;dataGrid&quot;
            dataProvider=&quot;{arrDP}&quot;
            headerHeight=&quot;4&quot;
            sortableColumns=&quot;false&quot; /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Hope that helps,

Peter</description>
		<content:encoded><![CDATA[<p>Claudiu,</p>
<p>Excellent question. I don&#8217;t think users can resize columns if there isn&#8217;t a visible header.<br />
One workaround is to enable the headers when the user rolls over the DataGrid control, as seen in the following example:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt;

    &lt;mx:Array id="arrDP"&gt;
        &lt;mx:Object c="1" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="2" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="3" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="4" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="5" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="6" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="7" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="8" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="9" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="10" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="11" c1="One" c2="Two" c3="Three" /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:DataGrid id="dataGrid"
            dataProvider="{arrDP}"
            showHeaders="false"
            rollOver="dataGrid.showHeaders = true;"
            rollOut="dataGrid.showHeaders = false;" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>The other workaround would be to always show the data grid headers, but set the <code>headerHeight</code> property to a small value (such as 2-4). This would still allow users to resize columns, but it wouldn&#8217;t display column labels. The only catch is that the sort arrow would still appear, so you would either need to set the <code>sortableColumns</code> property to <code>false</code>, or create a transparent icon for the sort arrow (setting the <code>sortArrowSkin</code> style to <code>null</code> was problematic).</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt;

    &lt;mx:Array id="arrDP"&gt;
        &lt;mx:Object c="1" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="2" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="3" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="4" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="5" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="6" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="7" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="8" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="9" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="10" c1="One" c2="Two" c3="Three" /&gt;
        &lt;mx:Object c="11" c1="One" c2="Two" c3="Three" /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:DataGrid id="dataGrid"
            dataProvider="{arrDP}"
            headerHeight="4"
            sortableColumns="false" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Hope that helps,</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudiu</title>
		<link>http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/comment-page-1/#comment-888</link>
		<dc:creator>Claudiu</dc:creator>
		<pubDate>Fri, 23 Jan 2009 14:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/28/toggling-a-flex-datagrid-controls-header-row/#comment-888</guid>
		<description>can the columns be re-sized by the user if the headers are missing? how?</description>
		<content:encoded><![CDATA[<p>can the columns be re-sized by the user if the headers are missing? how?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

