<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FlexMan &#187; DataGrid</title>
	<atom:link href="http://flexman.info/tag/datagrid/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexman.info</link>
	<description>Everything is Flex</description>
	<lastBuildDate>Sun, 30 Oct 2011 12:46:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Teach You How to Set Background Color For DataGrid Headers</title>
		<link>http://flexman.info/2009/03/01/teach-you-how-to-set-background-color-for-datagrid-headers/</link>
		<comments>http://flexman.info/2009/03/01/teach-you-how-to-set-background-color-for-datagrid-headers/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 04:11:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe-Flex]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexman.info/?p=254</guid>
		<description><![CDATA[Maybe you are headache for how to set the background color for headers in DataGrid. It seems there is no option of setting background-color in DataGridColumn. Then following article supplied a solution for you. You could easily understand it. If you have interesting why not try it at once? Screenshot: Article URL: Set Background-color for Headers [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe you are headache for how to set the background color for headers in DataGrid. It seems there is no option of setting background-color in DataGridColumn. Then following article supplied a solution for you. You could easily understand it. If you have interesting why not try it at once?</p>
<div style="margin: 0px 0px 0px 15px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2748932162110627";
/* 1st-FlexMan-Article-336-280-01 */
google_ad_slot = "5782465088";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p><span id="more-254"></span></p>
<p>Screenshot:</p>
<p><img class="alignnone size-full wp-image-255" title="clip-image0025" src="http://flexman.info/wp-content/uploads/2009/03/clip-image0025.jpg" alt="clip-image0025" width="496" height="370" /></p>
<p>Article URL: <a title="Permanent Link to Set Background-color for Headers of DataGrid" rel="bookmark" href="http://ntt.cc/2009/02/18/set-background-color-for-headers-of-datagrid.html">Set Background-color for Headers of DataGrid</a></p>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://flexman.info/2008/08/27/a-flex-box-components-gradient-box/" title="A Flex Box Components &#8212; Gradient Box">A Flex Box Components &#8212; Gradient Box</a></li><li><a href="http://flexman.info/2010/07/14/flex-4-books-effortless-flex-4-development-available/" title="Flex 4 Books &#8220;Effortless Flex 4 Development&#8221; Available">Flex 4 Books &#8220;Effortless Flex 4 Development&#8221; Available</a></li><li><a href="http://flexman.info/2010/07/12/how-to-install-adobe-flex-builder-linuxalpha-in-ubuntu/" title="How To Install Adobe Flex Builder Linux(alpha) In Ubuntu">How To Install Adobe Flex Builder Linux(alpha) In Ubuntu</a></li><li><a href="http://flexman.info/2010/03/06/a-testing-framework-for-flex-23-reflex-unit/" title="A Testing Framework For Flex 2/3 &ndash; Reflex Unit">A Testing Framework For Flex 2/3 &ndash; Reflex Unit</a></li><li><a href="http://flexman.info/2010/01/16/a-framework-help-you-to-create-flashflex-website-with-all-of-the-benefits-of-html-website-swfseo/" title="A Framework Help You to Create Flash/Flex Website With All of the Benefits of HTML Website &#8211; SWFSEO">A Framework Help You to Create Flash/Flex Website With All of the Benefits of HTML Website &#8211; SWFSEO</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://flexman.info/2009/03/01/teach-you-how-to-set-background-color-for-datagrid-headers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy DataGrid Data by setClipboard in Flex For Convenience to Export Code of Excel in Flex</title>
		<link>http://flexman.info/2008/11/16/copy-datagrid-data-by-setclipboard-for-convenience-to-export-code-of-excel/</link>
		<comments>http://flexman.info/2008/11/16/copy-datagrid-data-by-setclipboard-for-convenience-to-export-code-of-excel/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 11:28:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe-Flex]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[setClipboard]]></category>
		<category><![CDATA[TSV]]></category>

		<guid isPermaLink="false">http://flexman.info/2008/11/16/copy-datagrid-data-by-setclipboard-for-convenience-to-export-code-of-excel/</guid>
		<description><![CDATA[Maybe you want to make more choice for user to export the data. Following is a paragraph of code which could help you to copy the data of DataGrid to clipboard. It is formated by Tab and saved as TSV file or you coould save it as CSV file by comma. More detail please see [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe you want to make more choice for user to export the data. Following is a paragraph of code which could help you to copy the data of DataGrid to clipboard. It is formated by Tab and saved as TSV file or you coould save it as CSV file by comma. More detail please see the following code:</p>
<div style="margin: 0px 0px 0px 15px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2748932162110627";
/* 1st-FlexMan-Article-336-280-01 */
google_ad_slot = "5782465088";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p><span id="more-146"></span></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Green;">import</span><span style="color: Gray;"> </span><span style="color: Teal;">flash</span><span style="color: Gray;">.</span><span style="color: Teal;">system</span><span style="color: Gray;">.</span><span style="color: Teal;">System</span><span style="color: Gray;">;</span></li>
<li><span style="color: Green;">import</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">com</span><span style="color: Gray;">.</span><span style="color: Blue;">mycompany</span><span style="color: Gray;">.</span><span style="color: Blue;">dto</span><span style="color: Gray;">.</span><span style="color: Blue;">SaleDTO</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">function</span><span style="color: Gray;"> </span><span style="color: Blue;">exportAsTSVtoClipBoard</span><span style="color: Olive;">()</span><span style="color: Gray;">:</span><span style="color: Green;">void</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">var</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">TSVString</span><span style="color: Gray;">:</span><span style="color: Teal;">String</span><span style="color: Gray;"> = </span><span style="color: #8b0000;">&quot;&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">// Run through each field to create the column headers row</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Buyer name</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Buyer id</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Buyer address</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Gross Amount</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">VAT AMount</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Net Amount</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;&nbsp; </span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">// Line break</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\n</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;&nbsp; </span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">// Run through each datagrid row</span></li>
<li><span style="color: Gray;">&nbsp;&nbsp; </span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">for</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">each</span><span style="color: Olive;">(</span><span style="color: Green;">var</span><span style="color: Gray;"> </span><span style="color: Blue;">item</span><span style="color: Gray;">:</span><span style="color: Blue;">SaleDTO</span><span style="color: Gray;"> </span><span style="color: Green;">in</span><span style="color: Gray;"> </span><span style="color: Green;">this</span><span style="color: Gray;">.</span><span style="color: Blue;">model</span><span style="color: Gray;">.</span><span style="color: Blue;">sales</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: Blue;">item</span><span style="color: Gray;">.</span><span style="color: Blue;">buyerName</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: Blue;">item</span><span style="color: Gray;">.</span><span style="color: Blue;">buyerId</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: Blue;">item</span><span style="color: Gray;">.</span><span style="color: Blue;">buyerAddress</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: Green;">this</span><span style="color: Gray;">.</span><span style="color: Blue;">numberFormatter</span><span style="color: Gray;">.</span><span style="color: Blue;">format</span><span style="color: Olive;">(</span><span style="color: Blue;">item</span><span style="color: Gray;">.</span><span style="color: Blue;">grossAmount</span><span style="color: Olive;">)</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: Green;">this</span><span style="color: Gray;">.</span><span style="color: Blue;">numberFormatter</span><span style="color: Gray;">.</span><span style="color: Blue;">format</span><span style="color: Olive;">(</span><span style="color: Blue;">item</span><span style="color: Gray;">.</span><span style="color: Blue;">vatAmount</span><span style="color: Olive;">)</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\t</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">TSVString</span><span style="color: Gray;"> += </span><span style="color: Green;">this</span><span style="color: Gray;">.</span><span style="color: Blue;">numberFormatter</span><span style="color: Gray;">.</span><span style="color: Blue;">format</span><span style="color: Olive;">(</span><span style="color: Blue;">item</span><span style="color: Gray;">.</span><span style="color: Blue;">netAmount</span><span style="color: Olive;">)</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Navy;">\n</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp;&nbsp; </span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">// Copy the TSV string to the clipboard</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Teal;">System</span><span style="color: Gray;">.</span><span style="color: Teal;">setClipboard</span><span style="color: Olive;">(</span><span style="color: Blue;">TSVString</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span></li></ol></div>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://flexman.info/2009/03/01/teach-you-how-to-set-background-color-for-datagrid-headers/" title="Teach You How to Set Background Color For DataGrid Headers ">Teach You How to Set Background Color For DataGrid Headers </a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://flexman.info/2008/11/16/copy-datagrid-data-by-setclipboard-for-convenience-to-export-code-of-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 6/24 queries in 0.189 seconds using disk
Object Caching 213/398 objects using disk

Served from: flexman.info @ 2012-05-23 17:59:37 -->
