<?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: Locking columns in a horizontally scrolling DataGrid control</title>
	<atom:link href="http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/</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: David</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-9423</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 26 Jul 2011 19:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-9423</guid>
		<description>Hi, I&#039;m having a strange bug when I set my locked columns dynamically. I&#039;m using a numeric stepper to set the number. After the user changes the number the locked columns adjust on the grid as they should. However, when the user scrolls horizontally, the header row labels don&#039;t lock, they seemingly disappear. Any idea why?</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m having a strange bug when I set my locked columns dynamically. I&#8217;m using a numeric stepper to set the number. After the user changes the number the locked columns adjust on the grid as they should. However, when the user scrolls horizontally, the header row labels don&#8217;t lock, they seemingly disappear. Any idea why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinay</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-7750</link>
		<dc:creator>Vinay</dc:creator>
		<pubDate>Wed, 19 May 2010 17:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-7750</guid>
		<description>@ Peter,
 I have filed the following bug https://bugs.adobe.com/jira/browse/SDK-26477

Thanks,
Vinay.</description>
		<content:encoded><![CDATA[<p>@ Peter,<br />
 I have filed the following bug <a href="https://bugs.adobe.com/jira/browse/SDK-26477" rel="nofollow">https://bugs.adobe.com/jira/browse/SDK-26477</a></p>
<p>Thanks,<br />
Vinay.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-7696</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 13 May 2010 17:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-7696</guid>
		<description>@Vinay,

Can you please file a bug at http://bugs.adobe.com/flex/ and attach a simple test case showing the behavior to the bug report.

Thanks,
Peter</description>
		<content:encoded><![CDATA[<p>@Vinay,</p>
<p>Can you please file a bug at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a> and attach a simple test case showing the behavior to the bug report.</p>
<p>Thanks,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinay</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-7695</link>
		<dc:creator>Vinay</dc:creator>
		<pubDate>Thu, 13 May 2010 16:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-7695</guid>
		<description>Hi Peter,
                     Let me first tell you that you have a great website going here. I constantly refer to it if I encounter any issues related to flex. With that being said, I have an itemrenderer and an itemeditor in a datagrid whose locked column count is set to 2. Within the datagrid I have a column whose text can be longer than the column width, the itemrenderer in this case is a Label and i set its percentWidth to 100, minWidth to 0 and trucateToFit property to true. The text displays fine with ... , but after I edit another column I get the error below. If I remove that column though I do not get the error. Would you have any pointers as to what the issue might be?
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at mx.controls::DataGrid/makeRowsAndColumns()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1563]
	at mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:1377]
	at mx.controls.listClasses::ListBase/updateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3722]
	at mx.controls.dataGridClasses::DataGridBase/updateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:581]
	at mx.controls::DataGrid/updateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1449]
	at mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3344]
	at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
	at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:695]
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8744]
	at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8684]
	at flash.utils::Timer/_timerDispatch()
	at flash.utils::Timer/tick()</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
                     Let me first tell you that you have a great website going here. I constantly refer to it if I encounter any issues related to flex. With that being said, I have an itemrenderer and an itemeditor in a datagrid whose locked column count is set to 2. Within the datagrid I have a column whose text can be longer than the column width, the itemrenderer in this case is a Label and i set its percentWidth to 100, minWidth to 0 and trucateToFit property to true. The text displays fine with &#8230; , but after I edit another column I get the error below. If I remove that column though I do not get the error. Would you have any pointers as to what the issue might be?<br />
TypeError: Error #1009: Cannot access a property or method of a null object reference.<br />
	at mx.controls::DataGrid/makeRowsAndColumns()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1563]<br />
	at mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:1377]<br />
	at mx.controls.listClasses::ListBase/updateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3722]<br />
	at mx.controls.dataGridClasses::DataGridBase/updateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:581]<br />
	at mx.controls::DataGrid/updateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1449]<br />
	at mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3344]<br />
	at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]<br />
	at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:695]<br />
	at Function/http://adobe.com/AS3/2006/builtin::apply()<br />
	at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8744]<br />
	at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8684]<br />
	at flash.utils::Timer/_timerDispatch()<br />
	at flash.utils::Timer/tick()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Aprieto</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-5225</link>
		<dc:creator>Arnold Aprieto</dc:creator>
		<pubDate>Tue, 18 Aug 2009 13:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-5225</guid>
		<description>Sorry &#039;bout that. I learned that the columns with indexes that are lower than the value remain fixed in view.
Thanks.</description>
		<content:encoded><![CDATA[<p>Sorry &#8217;bout that. I learned that the columns with indexes that are lower than the value remain fixed in view.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Aprieto</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-5224</link>
		<dc:creator>Arnold Aprieto</dc:creator>
		<pubDate>Tue, 18 Aug 2009 13:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-5224</guid>
		<description>Hi Peter,

Is it possible to freeze 2 or multiple columns at the same time?

Thanks,
Arnold</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Is it possible to freeze 2 or multiple columns at the same time?</p>
<p>Thanks,<br />
Arnold</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Bailey</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-622</link>
		<dc:creator>Simon Bailey</dc:creator>
		<pubDate>Thu, 11 Dec 2008 10:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-622</guid>
		<description>RE: &quot;Is there a way to remove that black vertical grid line. Tried a number of ways, sounds impossible.&quot;

Create a class as below:
&lt;pre class=&quot;code&quot;&gt;
package
{
    import mx.skins.halo.DataGridHeaderSeparator;

    public class DataGridHeaderSeparator extends mx.skins.halo.DataGridHeaderSeparator
    {
        override public function get measuredWidth():Number
        {
            return 0;
        }

        override public function setActualSize(newWidth:Number, newHeight:Number):void
        {
            graphics.clear();
        }
    }
}
&lt;/pre&gt;

Then in your DataGrid params use:
&lt;pre class=&quot;code&quot;&gt;
verticalLockedSeparatorSkin=&quot;DataGridHeaderSeparator&quot;
&lt;/pre&gt;

That should do the trick :)

Cheers,

Simon

newtriks dot com</description>
		<content:encoded><![CDATA[<p>RE: &#8220;Is there a way to remove that black vertical grid line. Tried a number of ways, sounds impossible.&#8221;</p>
<p>Create a class as below:</p>
<pre class="code">
package
{
    import mx.skins.halo.DataGridHeaderSeparator;

    public class DataGridHeaderSeparator extends mx.skins.halo.DataGridHeaderSeparator
    {
        override public function get measuredWidth():Number
        {
            return 0;
        }

        override public function setActualSize(newWidth:Number, newHeight:Number):void
        {
            graphics.clear();
        }
    }
}
</pre>
<p>Then in your DataGrid params use:</p>
<pre class="code">
verticalLockedSeparatorSkin="DataGridHeaderSeparator"
</pre>
<p>That should do the trick :)</p>
<p>Cheers,</p>
<p>Simon</p>
<p>newtriks dot com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nino</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-621</link>
		<dc:creator>nino</dc:creator>
		<pubDate>Wed, 29 Oct 2008 08:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-621</guid>
		<description>Is there a way to make column C on the example swf file not to resize and occupy the whole unfreeze section?</description>
		<content:encoded><![CDATA[<p>Is there a way to make column C on the example swf file not to resize and occupy the whole unfreeze section?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-620</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Thu, 06 Dec 2007 17:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-620</guid>
		<description>bing/Nikola,

I&#039;m not sure if it works in Flex 2 (I believe it was added in Flex 3), but check out &lt;a href=&quot;http://blog.flexexamples.com/2007/12/05/changing-the-appearance-of-the-locked-column-separator-skin-for-a-datagrid-control-in-flex-3/&quot; rel=&quot;nofollow&quot;&gt;&quot;Changing the appearance of the locked column separator skin for a DataGrid control in Flex 3&quot;&lt;/a&gt;.

Peter</description>
		<content:encoded><![CDATA[<p>bing/Nikola,</p>
<p>I&#8217;m not sure if it works in Flex 2 (I believe it was added in Flex 3), but check out <a href="http://blog.flexexamples.com/2007/12/05/changing-the-appearance-of-the-locked-column-separator-skin-for-a-datagrid-control-in-flex-3/" rel="nofollow">&#8220;Changing the appearance of the locked column separator skin for a DataGrid control in Flex 3&#8243;</a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikola</title>
		<link>http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/comment-page-1/#comment-616</link>
		<dc:creator>Nikola</dc:creator>
		<pubDate>Wed, 05 Dec 2007 17:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/15/locking-columns-in-a-horizontally-scrolling-datagrid-control/#comment-616</guid>
		<description>Tried a number of ways, sounds impossible. for me is the same what we can do ?</description>
		<content:encoded><![CDATA[<p>Tried a number of ways, sounds impossible. for me is the same what we can do ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

