<?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: DataGrid Component V2 Header Gradient</title>
	<atom:link href="http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/</link>
	<description></description>
	<lastBuildDate>Tue, 07 Sep 2010 16:57:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Anthony Cintron</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-115</link>
		<dc:creator>Anthony Cintron</dc:creator>
		<pubDate>Tue, 08 Aug 2006 21:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-115</guid>
		<description>Thank you, this worked out great.</description>
		<content:encoded><![CDATA[<p>Thank you, this worked out great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-52</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 20 Sep 2005 08:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-52</guid>
		<description>Found this elsewhere, very helpful as you dont even have to physically modify a component.&lt;br /&gt;
&lt;br /&gt;
mx.controls.DataGrid.prototype.drawHeaderBG = function(Void) {&lt;br /&gt;
	var mc:MovieClip = this.header_mc;&lt;br /&gt;
	mc.clear();&lt;br /&gt;
	var clr:Number = this.getStyle(&quot;headerColor&quot;);&lt;br /&gt;
	var o:Object = this.__viewMetrics;&lt;br /&gt;
	var tot:Number = Math.max(this.totalWidth, this.displayWidth+3);&lt;br /&gt;
	mc.moveTo(o.left, o.top);&lt;br /&gt;
	mc.beginFill(clr, 100);&lt;br /&gt;
	mc.lineStyle(0, 0x000000, 0);&lt;br /&gt;
	mc.lineTo(tot, o.top);&lt;br /&gt;
	mc.lineTo(tot, this.__headerHeight+1);&lt;br /&gt;
	mc.lineStyle(0, 0x000000, 0);&lt;br /&gt;
	mc.lineTo(o.left, this.__headerHeight+1);&lt;br /&gt;
	mc.lineStyle(0, 0x000000, 0);&lt;br /&gt;
	mc.endFill();&lt;br /&gt;
};&lt;br /&gt;
your_datagrid.setStyle(&quot;headerColor&quot;, 0xFFCC00);</description>
		<content:encoded><![CDATA[<p>Found this elsewhere, very helpful as you dont even have to physically modify a component.</p>
<p>mx.controls.DataGrid.prototype.drawHeaderBG = function(Void) {<br />
	var mc:MovieClip = this.header_mc;<br />
	mc.clear();<br />
	var clr:Number = this.getStyle(&#8220;headerColor&#8221;);<br />
	var o:Object = this.__viewMetrics;<br />
	var tot:Number = Math.max(this.totalWidth, this.displayWidth+3);<br />
	mc.moveTo(o.left, o.top);<br />
	mc.beginFill(clr, 100);<br />
	mc.lineStyle(0, 0&#215;000000, 0);<br />
	mc.lineTo(tot, o.top);<br />
	mc.lineTo(tot, this.__headerHeight+1);<br />
	mc.lineStyle(0, 0&#215;000000, 0);<br />
	mc.lineTo(o.left, this.__headerHeight+1);<br />
	mc.lineStyle(0, 0&#215;000000, 0);<br />
	mc.endFill();<br />
};<br />
your_datagrid.setStyle(&#8220;headerColor&#8221;, 0xFFCC00);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ã˜ivind</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-50</link>
		<dc:creator>Ã˜ivind</dc:creator>
		<pubDate>Tue, 09 Aug 2005 09:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-50</guid>
		<description>Thanks man!</description>
		<content:encoded><![CDATA[<p>Thanks man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Leggett</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-45</link>
		<dc:creator>Richard Leggett</dc:creator>
		<pubDate>Thu, 02 Jun 2005 15:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-45</guid>
		<description>Instead of modifying the core Macromedia classes, a better option would be to either:&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
- Copy DataGrid.as into the same directory as the FLA and modify it there, this will take precedence over the other classpath.&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
- Subclass DataGrid like so:&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
class SolidDataGrid extends mx.controls.DataGrid {&lt;br /&gt;&lt;br /&gt;
function drawHeaderBG() {&lt;br /&gt;&lt;br /&gt;
// Edited code here&lt;br /&gt;&lt;br /&gt;
}&lt;br /&gt;&lt;br /&gt;
}&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
And change the class linkage for the DataGrid component you dragged into your library from StandardComponents.fla so that it uses your custom class and is called SolidDataGrid.&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
This way you don&#039;t break the functionality of the standard component. Hope that helps!&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
Read more + sample FLA here:&lt;br /&gt;&lt;br /&gt;
&lt;a href=&quot;http://flashmove.com/forum/showthread.php?p=76889&quot;&gt;http://flashmove.com/forum/showthread.php?p=76889&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Instead of modifying the core Macromedia classes, a better option would be to either:</p>
<p>- Copy DataGrid.as into the same directory as the FLA and modify it there, this will take precedence over the other classpath.</p>
<p>- Subclass DataGrid like so:</p>
<p>class SolidDataGrid extends mx.controls.DataGrid {</p>
<p>function drawHeaderBG() {</p>
<p>// Edited code here</p>
<p>}</p>
<p>}</p>
<p>And change the class linkage for the DataGrid component you dragged into your library from StandardComponents.fla so that it uses your custom class and is called SolidDataGrid.</p>
<p>This way you don&#8217;t break the functionality of the standard component. Hope that helps!</p>
<p>Read more + sample FLA here:</p>
<p><a href="http://flashmove.com/forum/showthread.php?p=76889">http://flashmove.com/forum/showthread.php?p=76889</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lester</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-44</link>
		<dc:creator>Lester</dc:creator>
		<pubDate>Tue, 26 Apr 2005 20:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-44</guid>
		<description>Hi Jason,&lt;br /&gt;
Exactly what I have tried but didn&#039;t work.&lt;br /&gt;
Have found a solution already thnx to Blueskies ...&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.actionscript.org/forums/printthread.php3?t=51477&quot;&gt;http://www.actionscript.org/forums/printthread.php3?t=51477&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
kind regards,&lt;br /&gt;
Lester.</description>
		<content:encoded><![CDATA[<p>Hi Jason,<br />
Exactly what I have tried but didn&#8217;t work.<br />
Have found a solution already thnx to Blueskies &#8230;</p>
<p><a href="http://www.actionscript.org/forums/printthread.php3?t=51477">http://www.actionscript.org/forums/printthread.php3?t=51477</a></p>
<p>kind regards,<br />
Lester.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Gill</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-43</link>
		<dc:creator>Jason Gill</dc:creator>
		<pubDate>Tue, 26 Apr 2005 20:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-43</guid>
		<description>You are right Lester, version 7.2 has StandardComponents.fla instead of StandardTheme.fla, so you should use that instead. Open the StandardComponents.fla (preferrably as a Shared Libriary: File -&gt; Import -&gt; Open Shared Library) and drag the dataGrid component from that library to your own fla&#039;s stage. I hope that helps.</description>
		<content:encoded><![CDATA[<p>You are right Lester, version 7.2 has StandardComponents.fla instead of StandardTheme.fla, so you should use that instead. Open the StandardComponents.fla (preferrably as a Shared Libriary: File -&gt; Import -&gt; Open Shared Library) and drag the dataGrid component from that library to your own fla&#8217;s stage. I hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lester</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-42</link>
		<dc:creator>Lester</dc:creator>
		<pubDate>Tue, 26 Apr 2005 19:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-42</guid>
		<description>Hi, maybe a stupid question, but I don&#039;t have a standardTheme.fla, took StandardComponents.fla, I&#039;m using 7.2 version, probably different. But I can&#039;t make it work. What do I have to do exactly when you say &quot;open fla and add it from there.&quot;? drag it from StandardComponents.fla&#039;s library(if correct fla)on my new blank file?&lt;br /&gt;
Help would be great...&lt;br /&gt;
thnx in advance,&lt;br /&gt;
Lester.</description>
		<content:encoded><![CDATA[<p>Hi, maybe a stupid question, but I don&#8217;t have a standardTheme.fla, took StandardComponents.fla, I&#8217;m using 7.2 version, probably different. But I can&#8217;t make it work. What do I have to do exactly when you say &#8220;open fla and add it from there.&#8221;? drag it from StandardComponents.fla&#8217;s library(if correct fla)on my new blank file?<br />
Help would be great&#8230;<br />
thnx in advance,<br />
Lester.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve o</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-35</link>
		<dc:creator>steve o</dc:creator>
		<pubDate>Sat, 12 Feb 2005 16:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-35</guid>
		<description>Saved me some time. Thanks.</description>
		<content:encoded><![CDATA[<p>Saved me some time. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vilo</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-34</link>
		<dc:creator>vilo</dc:creator>
		<pubDate>Wed, 09 Feb 2005 20:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-34</guid>
		<description>great hack, thank you</description>
		<content:encoded><![CDATA[<p>great hack, thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FÃƒÂ¡bio</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/comment-page-1/#comment-547</link>
		<dc:creator>FÃƒÂ¡bio</dc:creator>
		<pubDate>Tue, 02 Nov 2004 23:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-547</guid>
		<description>Awesome! Just what I was looking for. Will try that now!
Do you know if there&#039;s a way of changing the selection color (that green is really lame)</description>
		<content:encoded><![CDATA[<p>Awesome! Just what I was looking for. Will try that now!<br />
Do you know if there&#8217;s a way of changing the selection color (that green is really lame)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
