<?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>FlexOut &#187; datagrid</title>
	<atom:link href="http://flex.exposedout.net/tag/datagrid/feed/" rel="self" type="application/rss+xml" />
	<link>http://flex.exposedout.net</link>
	<description>i am an itemrendrer in the making!</description>
	<lastBuildDate>Fri, 13 May 2011 10:05:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Dynamically add remove columns in a datagrid</title>
		<link>http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/</link>
		<comments>http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 14:46:33 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[add columns]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[dynamic columns]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=25</guid>
		<description><![CDATA[I had a hard time figuring out how to add remove columns  dynamically from a datagrid and after lots of code iterations I have reached a workable scenario. Right now the code is fairly easy to understand and can be enhanced to a gr8 deal, I still need to add other important functionalities. Close headerrenderer for [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/' rel='bookmark' title='Permanent Link: Copy functionality in DataGrid'>Copy functionality in DataGrid</a></li>
<li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I had a hard time figuring out how to add remove columns  dynamically from a datagrid and after lots of code iterations I have reached a workable scenario. Right now the code is fairly easy to understand and can be enhanced to a gr8 deal,</p>
<p>I still need to add other important functionalities.</p>
<ul>
<li>Close headerrenderer for each column</li>
<li>delete entire row functionality</li>
<li>user defined default state</li>
<li>and much more&#8230;</li>
</ul>
<p>Dint get the time to complete this post but someday i will surely post a complete working APP<br />
by that time check out the code  USE AND MODIFY AS PLEASED!!!</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">&lt;</span> ?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;</span>mx:application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:hdividedbox <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> dividerRelease=<span style="color: #ff0000;">&quot;handleDivderRelease()&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:script<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span> <span style="color: #66cc66;">!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">CheckBox</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">ComboBox</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">dataGridClasses</span>.<span style="color: #006600;">DataGridColumn</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> counter : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> conDataProvider : <span style="color: #0066CC;">Array</span> =<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col1&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c1&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col2&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c2&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col3&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c3&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col4&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c4&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col5&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c5&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col6&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c6&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> hideShowColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> actualColumns:<span style="color: #0066CC;">Array</span> = ResultGrid.<span style="color: #006600;">columns</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> actualSelectedColumns:<span style="color: #0066CC;">Array</span> = &nbsp;lstColumns.<span style="color: #006600;">selectedItems</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> dataGridColumn:DataGridColumn;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> sDataField:<span style="color: #0066CC;">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> sDataFieldCur:<span style="color: #0066CC;">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> columnVisible:<span style="color: #0066CC;">Boolean</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span>=<span style="color: #cc66cc;">0</span>;i<span style="color: #66cc66;">&lt;</span>actualColumns.<span style="color: #0066CC;">length</span>;i++<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; columnVisible = <span style="color: #000000; font-weight: bold;">false</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataGridColumn = actualColumns<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sDataField = dataGridColumn.<span style="color: #006600;">dataField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> j : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; j <span style="color: #66cc66;">&lt;</span> actualSelectedColumns.<span style="color: #0066CC;">length</span>; j++<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>actualSelectedColumns<span style="color: #66cc66;">&#91;</span>j<span style="color: #66cc66;">&#93;</span> == <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">continue</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sDataFieldCur = actualSelectedColumns<span style="color: #66cc66;">&#91;</span>j<span style="color: #66cc66;">&#93;</span>.<span style="color: #0066CC;">data</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>sDataFieldCur == sDataField<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; columnVisible = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>columnVisible<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataGridColumn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> &nbsp;<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataGridColumn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> selectAll<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstColumns.<span style="color: #006600;">selectedIndices</span>=<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">4</span>,<span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hideShowColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> clearAll<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstColumns.<span style="color: #006600;">selectedIndices</span>=<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hideShowColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> setDefault<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstColumns.<span style="color: #006600;">selectedIndices</span>=<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hideShowColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleDivderRelease<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>counter == <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controlBox.<span style="color: #0066CC;">width</span> =<span style="color: #cc66cc;">0</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>counter == <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controlBox.<span style="color: #0066CC;">width</span> =<span style="color: #cc66cc;">120</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter = <span style="color: #66cc66;">&#40;</span>counter +<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">%</span>2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:script<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:vbox id=<span style="color: #ff0000;">&quot;controlBox&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;120&quot;</span> maxWidth=<span style="color: #ff0000;">&quot;120&quot;</span> &nbsp;verticalGap=<span style="color: #ff0000;">&quot;0&quot;</span> horizontalScrollPolicy=<span style="color: #ff0000;">&quot;off&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:label <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Selected columns&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">list</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;120&quot;</span> id=<span style="color: #ff0000;">&quot;lstColumns&quot;</span> dataProvider=<span style="color: #ff0000;">&quot;{conDataProvider}&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;labelField=<span style="color: #ff0000;">&quot;label&quot;</span> <span style="color: #0066CC;">borderColor</span>=<span style="color: #ff0000;">&quot;#000000&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;allowMultipleSelection=<span style="color: #ff0000;">&quot;true&quot;</span> click=<span style="color: #ff0000;">&quot;hideShowColumns()&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;selectedIndices=<span style="color: #ff0000;">&quot;[0,1,2,3]&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:textarea <span style="color: #0066CC;">wordWrap</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #0066CC;">selectable</span>=<span style="color: #ff0000;">&quot;false&quot;</span> editable=<span style="color: #ff0000;">&quot;false&quot;</span> borderStyle=<span style="color: #ff0000;">&quot;none&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;For multiple selection use ctrl/shift keys&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;120&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:spacer <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">button</span> label=<span style="color: #ff0000;">&quot;Select All&quot;</span> &nbsp;<span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> click=<span style="color: #ff0000;">&quot;selectAll()&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">button</span> label=<span style="color: #ff0000;">&quot;Default&quot;</span> &nbsp;<span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> click=<span style="color: #ff0000;">&quot;setDefault()&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">button</span> label=<span style="color: #ff0000;">&quot;Clear All&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> click=<span style="color: #ff0000;">&quot;clearAll()&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:vbox<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:vbox <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagrid <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> id=<span style="color: #ff0000;">&quot;ResultGrid&quot;</span> selectedIndex=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #0066CC;">enabled</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #0066CC;">selectable</span>=<span style="color: #ff0000;">&quot;true&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;init()&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:columns<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col1&quot;</span> dataField=<span style="color: #ff0000;">&quot;c1&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col2&quot;</span> dataField=<span style="color: #ff0000;">&quot;c2&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col3&quot;</span> dataField=<span style="color: #ff0000;">&quot;c3&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col4&quot;</span> dataField=<span style="color: #ff0000;">&quot;c4&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col5&quot;</span> dataField=<span style="color: #ff0000;">&quot;c5&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col6&quot;</span> dataField=<span style="color: #ff0000;">&quot;c6&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:columns<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:datagrid<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:vbox<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;/</span>mx:hdividedbox<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;/</span>mx:application<span style="color: #66cc66;">&gt;</span></div></td></tr></tbody></table></div>
<p><a href="http://flex.exposedout.net/wp-content/uploads/2009/07/dynamic-grid.png"><img class="aligncenter size-full wp-image-371" title="dynamic grid" src="http://flex.exposedout.net/wp-content/uploads/2009/07/dynamic-grid.png" alt="" width="629" height="419" /></a></p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/' rel='bookmark' title='Permanent Link: Copy functionality in DataGrid'>Copy functionality in DataGrid</a></li>
<li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filter datagrid using a hslider</title>
		<link>http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/</link>
		<comments>http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 13:53:08 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[hslider]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=189</guid>
		<description><![CDATA[Here is an example of Data grid filtered using a H slider  with 2 thumbs to select the range of date for which to  filter the data grid. The combo box is used to select the specific column on which the filter has to be applied to. The check box is used to either enable [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
<li><a href='http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/' rel='bookmark' title='Permanent Link: Copy functionality in DataGrid'>Copy functionality in DataGrid</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here is an example of Data grid filtered using a H slider  with 2 thumbs to select the range of date for which to  filter the data grid. The combo box is used to select the specific column on which the filter has to be applied to. The check box is used to either enable or disable the filter functionality.</p>
<p><strong>Screenshot</strong>:</p>
<p><img class="aligncenter size-full wp-image-190" title="testfilterdg" src="http://guavus.files.wordpress.com/2009/01/testfilterdg.jpg" alt="testfilterdg" width="480" height="239" /></p>
<p>For <strong>source </strong>please read the complete article<span id="more-189"></span></p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
layout=&#8221;vertical&#8221;<br />
height=&#8221;300&#8243; width=&#8221;600&#8243;<br />
backgroundColor=&#8221;white&#8221;<br />
creationComplete=&#8221;init();&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
import mx.events.SliderEvent;</p>
<p>private function init():void {<br />
if (checkBox.selected) {<br />
arrColl.filterFunction = sliderFilterFunc;<br />
arrColl.refresh();<br />
}<br />
}<br />
private var comb : Array = [{label:"value1",data:0},<br />
{label:"value2",data:1},<br />
{label:"value3",data:2}];</p>
<p>private function checkBox_change(evt:Event):void {<br />
if (checkBox.selected) {<br />
arrColl.filterFunction = sliderFilterFunc;<br />
} else {<br />
arrColl.filterFunction = null;<br />
}<br />
arrColl.refresh();<br />
}</p>
<p>private function slider_change(evt:SliderEvent):void {<br />
arrColl.refresh();<br />
}</p>
<p>private function sliderFilterFunc(item:Object):Boolean {<br />
var bool:Boolean;<br />
switch(vx.selectedItem.data){<br />
case 0:<br />
bool = checkData(item.value1);<br />
break;<br />
case 1:<br />
bool = checkData(item.value2);<br />
break;<br />
case 2:<br />
bool = checkData(item.value3);<br />
break;<br />
}<br />
return bool;<br />
}</p>
<p>private function checkData(num:Number):Boolean{<br />
var minSlider:Number = slider.values[0];<br />
var maxSlider:Number = slider.values[1];<br />
if ((num &gt;= minSlider)&amp;&amp;(num &lt;= maxSlider))<br />
return true;<br />
else<br />
return false;</p>
<p>}</p>
<p>]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:ArrayCollection id=&#8221;arrColl&#8221;&gt;<br />
&lt;mx:source&gt;<br />
&lt;mx:Array&gt;<br />
&lt;mx:Object label=&#8221;One&#8221; value1=&#8221;100&#8243; value2=&#8221;100&#8243; value3=&#8221;60&#8243;/&gt;<br />
&lt;mx:Object label=&#8221;Two&#8221; value1=&#8221;2&#8243; value2=&#8221;90&#8243; value3=&#8221;600&#8243;/&gt;<br />
&lt;mx:Object label=&#8221;Three&#8221; value1=&#8221;300&#8243; value2=&#8221;40&#8243; value3=&#8221;200&#8243;/&gt;<br />
&lt;mx:Object label=&#8221;Four&#8221; value1=&#8221;40&#8243; value2=&#8221;100&#8243; value3=&#8221;100&#8243;/&gt;<br />
&lt;mx:Object label=&#8221;Five&#8221; value1=&#8221;500&#8243; value2=&#8221;200&#8243; value3=&#8221;400&#8243;/&gt;<br />
&lt;mx:Object label=&#8221;Six&#8221; value1=&#8221;60&#8243; value2=&#8221;300&#8243; value3=&#8221;80&#8243;/&gt;<br />
&lt;mx:Object label=&#8221;Seven&#8221; value1=&#8221;700&#8243; value2=&#8221;500&#8243; value3=&#8221;30&#8243;/&gt;<br />
&lt;mx:Object label=&#8221;Eight&#8221; value1=&#8221;800&#8243; value2=&#8221;50&#8243; value3=&#8221;50&#8243;/&gt;<br />
&lt;mx:Object label=&#8221;Nine&#8221; value1=&#8221;90&#8243; value2=&#8221;90&#8243; value3=&#8221;50&#8243;/&gt;<br />
&lt;mx:Object label=&#8221;Ten&#8221; value1=&#8221;100&#8243; value2=&#8221;10&#8243; value3=&#8221;100&#8243;/&gt;<br />
&lt;/mx:Array&gt;<br />
&lt;/mx:source&gt;<br />
&lt;/mx:ArrayCollection&gt;</p>
<p>&lt;mx:ApplicationControlBar dock=&#8221;true&#8221;&gt;<br />
&lt;mx:HBox width=&#8221;100%&#8221;&gt;<br />
&lt;mx:Label text=&#8221;filter&#8221; /&gt;<br />
&lt;mx:CheckBox id=&#8221;checkBox&#8221; selected=&#8221;true&#8221; change=&#8221;checkBox_change(event);&#8221; /&gt;<br />
&lt;mx:ComboBox id=&#8221;vx&#8221; dataProvider=&#8221;{comb}&#8221;/&gt;<br />
&lt;mx:Label text=&#8221;Values&#8221; /&gt;<br />
&lt;mx:HSlider id=&#8221;slider&#8221;<br />
minimum=&#8221;0&#8243; maximum=&#8221;1000&#8243;<br />
values=&#8221;[0,1000]&#8221; labels=&#8221;[0,500,1000]&#8221;<br />
thumbCount=&#8221;2&#8243; showTrackHighlight=&#8221;true&#8221;<br />
snapInterval=&#8221;1&#8243; tickInterval=&#8221;100&#8243;<br />
liveDragging=&#8221;true&#8221; change=&#8221;slider_change(event);&#8221; /&gt;<br />
&lt;/mx:HBox&gt;<br />
&lt;/mx:ApplicationControlBar&gt;</p>
<p>&lt;mx:Panel status=&#8221;{arrColl.length}/{arrColl.source.length} item(s)&#8221;&gt;<br />
&lt;mx:DataGrid id=&#8221;dataGrid&#8221; dataProvider=&#8221;{arrColl}&#8221; verticalScrollPolicy=&#8221;on&#8221; /&gt;<br />
&lt;/mx:Panel&gt;</p>
<p>&lt;/mx:Application&gt;</p></blockquote>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
<li><a href='http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/' rel='bookmark' title='Permanent Link: Copy functionality in DataGrid'>Copy functionality in DataGrid</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Printing dataGrid in Flex</title>
		<link>http://flex.exposedout.net/2008/10/16/printing-datagrid-in-flex/</link>
		<comments>http://flex.exposedout.net/2008/10/16/printing-datagrid-in-flex/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 01:54:20 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[print]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=127</guid>
		<description><![CDATA[There are very few resources on the web about printing in Flex. Adobe LiveDocs is an excellent on-line reference for Flex. I thought of sharing my experience and the way I successfully printed the dataGrid in Flex. Example below: shows how to call a function to print a datagrid public function printDataGrid() : void { [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
<li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There are very few resources on the web about printing in Flex. Adobe LiveDocs is an excellent on-line reference for Flex. I thought of sharing my experience and the way I successfully printed the dataGrid in Flex.</p>
<p><strong>Example below: shows how to call a function to print a datagrid</strong></p>
<blockquote><p>public function printDataGrid() : void<br />
{<br />
var printJob : FlexPrintJob = new FlexPrintJob();<br />
var thePrintView : FormPrintView = new FormPrintView();<br />
Application.application.addChild(thePrintView);<br />
if(printJob.start() != true)<br />
return;</p>
<p>//Set the print view properties.<br />
thePrintView.width=printJob.pageWidth;<br />
thePrintView.height=printJob.pageHeight;<br />
thePrintView.printableDataGrid.dataProvider = originalDataGrid.dataProvider<br />
thePrintView.printableDataGrid.columns = originalDataGrid.columns ;<br />
thePrintView.printableDataGrid.setStyle(”fontSize”, 8);<br />
thePrintView.printableDataGrid.setStyle(”wordWrap”, true);<br />
printJob.addObject(thePrintView);</p>
<p>printJob.send();<br />
Application.application.removeChild(thePrintView);<br />
}</p>
<p>&lt;mx:DataGrid id=”originalDataGrid” width=”100%” height=”100%” dataProvider=”{dataForGrid}”/&gt;</p></blockquote>
<p>Example below: shows printview</p>
<blockquote><p>&lt;!– FormPrintView.mxml –&gt;<br />
&lt;mx:VBox xmlns:mx=”http://www.adobe.com/2006/mxml”&gt;<br />
&lt;mx:PrintDataGrid id=”printableDataGrid” width=”90%” height=”100%”&gt;<br />
&lt;!– Specify the columns to ensure that their order is correct. This is not mandatory–&gt;<br />
&lt;/mx:PrintDataGrid&gt;<br />
&lt;/mx:VBox&gt;</p></blockquote>
<p><strong>Below are the simple steps to print the DataGrid in Flex</strong></p>
<blockquote><p>1. Create an instance of the FlexPrintJob called printJob (you can call anything you want to)</p>
<p>2. Create an instance of the PrintDataGrid in another MXML file FormPrintView.mxml and create an instance of that &#8211; thePrintView (if you create&lt;mx:PrintDataGrid/&gt; in  the same MXML, which uses the function –&gt; printDataGrid() then the application reservers some place for &lt;mx:PrintDataGrid/&gt; component. This looks a bit ugly as we do not want to see that extra space in our application). Always use PrintGrid class to print the dataGrid instead of the DataGrid, which originally displays content in the application, as it is tailored to print DataGrid in flex</p>
<p>3. Add the thePrintView object to the application container</p>
<p style="padding-left:30px;">&#8220;Application.application.addChild(thePrintView);&#8221;</p>
<p>4. Only one print job can be active at a time. So check to see if the printJob.start() is true. Start printing when it is true</p>
<p>5. Set the height, width properties of the thePrintView object to the pageWidth and pageHeightof the pringJob object</p>
<p>6. Assign the dataProvider of the DataGrid to be printed to the instance of the PrintDataGrid class, You also need to set the columns of the original dataGrid to the thePrintView object. You can also control the appearance of the printDataGrid object as follows</p>
<p style="padding-left:30px;">printDataGrid.setStyle(”fontSize”, 8);<br />
printDataGrid.setStyle(”wordWrap”, true);</p>
<p>7. Use addObject method to add object to the printJob instance</p>
<p>8. Use printJob.send() to send the print job to a printer</p>
</blockquote>
<p><img src="http://sites.google.com/site/vxaodz/aodz/prinJob.JPG" alt="print datagrid" /><br />
<strong>Download source <a href="http://sites.google.com/site/vxaodz/aodz/printJob.zip">here</a></strong></p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
<li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2008/10/16/printing-datagrid-in-flex/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Flex dataGrid default column sort</title>
		<link>http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/</link>
		<comments>http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 10:55:44 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[default sort]]></category>
		<category><![CDATA[sort function]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=118</guid>
		<description><![CDATA[The below example  gives you a hook to sort a  particular column in a datagrid without user input. One can use the below function where ever a datagrid has to have a default sort order on its column(s).  Note : This works with flex 2 datagrid and not with Advanced datagrid in Moxie. The dataGridDefaultSort [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/' rel='bookmark' title='Permanent Link: Copy functionality in DataGrid'>Copy functionality in DataGrid</a></li>
<li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2008/10/05/search-datagrid-and-simple-datagrid-itemrenderer-example/' rel='bookmark' title='Permanent Link: Search dataGrid and Simple dataGrid Itemrenderer example'>Search dataGrid and Simple dataGrid Itemrenderer example</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The below example  gives you a hook to sort a  particular column in a datagrid without user input. One can use the below function where ever a datagrid has to have a default sort order on its column(s).  Note : This works with flex 2 datagrid and not with Advanced datagrid in Moxie.</p>
<p>The <strong>dataGridDefaultSort </strong>functions requires two input items. The dgName which as the variable suggest is the name of the DataGrid and the dgColumn, DataGrid Column, to be sorted by the numbers. column numbering begins with zero.</p>
<p>These input items are used with the <strong>DataGridEvent </strong>below and is dispatched (excuted). The DataGridEvent has a total of <strong>9</strong> values for successful operation. They are listed below in expanded detail.</p>
<p>1. <strong>type : String</strong> — The event type; indicates the action that caused the event. This is represented by the dgName input variable. The DataGridEvent.HEADER_RELEASE constant defines the value of the type property of the event object for a headerRelease event, which indicates that the user pressed and released the mouse on a column header<br />
2. <strong>bubbles : Boolean</strong> (default = false) — Specifies whether the event can bubble up the display list hierarchy.<br />
3. <strong>cancelable : Boolean</strong> (default = false) — Specifies whether the behavior associated with the event can be prevented.<br />
4. <strong>columnIndex : int</strong> (default = -1) — The zero-based index of the column where the event occurred. This is represented by the dgColumn input variable.<br />
5. <strong>dataField : String</strong> (default = null) — The name of the field or property in the data associated with the column.<br />
6.<strong> rowIndex : int</strong> (default = -1) — The zero-based index of the item in the in the data provider.<br />
7. <strong>reason : String</strong> (default = null) — The reason for an itemEditEnd event.<br />
8. <strong>itemRenderer : IListItemRenderer</strong> (default = null) — The item renderer that is being edited or the header renderer that was clicked.<br />
9. <strong>localX : Number</strong> — Column x-position for replaying columnStretch events.</p>
<p>Call this function anywhere in the program and  use as per above attributes.</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> dataGridDefaultSort <span style="color: #66cc66;">&#40;</span>dgName:<span style="color: #0066CC;">Object</span>, dgColumn:<span style="color: #0066CC;">int</span><span style="color: #66cc66;">&#41;</span>: <span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span> <br />
dgName.<span style="color: #006600;">dispatchEvent</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> DataGridEvent<span style="color: #66cc66;">&#40;</span>DataGridEvent.<span style="color: #006600;">HEADER_RELEASE</span>,   <span style="color: #000000; font-weight: bold;">false</span>,<span style="color: #000000; font-weight: bold;">true</span>,dgColumn,<span style="color: #000000; font-weight: bold;">null</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #000000; font-weight: bold;">null</span>,<span style="color: #000000; font-weight: bold;">null</span>,<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/' rel='bookmark' title='Permanent Link: Copy functionality in DataGrid'>Copy functionality in DataGrid</a></li>
<li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2008/10/05/search-datagrid-and-simple-datagrid-itemrenderer-example/' rel='bookmark' title='Permanent Link: Search dataGrid and Simple dataGrid Itemrenderer example'>Search dataGrid and Simple dataGrid Itemrenderer example</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search dataGrid and Simple dataGrid Itemrenderer example</title>
		<link>http://flex.exposedout.net/2008/10/05/search-datagrid-and-simple-datagrid-itemrenderer-example/</link>
		<comments>http://flex.exposedout.net/2008/10/05/search-datagrid-and-simple-datagrid-itemrenderer-example/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 02:13:56 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[cursor]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[itemrenderer]]></category>
		<category><![CDATA[lifecycle]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=85</guid>
		<description><![CDATA[The following example is a Simple searchable DataGrid, I have also included dataGrid item renderer to show how to define/use a dataGrid &#8220;itemRendrer&#8221;. Search and Highlight a row depending on the searched text in a dataGrid. Define a cursor to traverse dataGrid rows. The Objective of this example : How to create custom item rendrer [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2008/09/08/inline-itemrenderer/' rel='bookmark' title='Permanent Link: Inline Itemrenderer'>Inline Itemrenderer</a></li>
<li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The following example is a Simple searchable DataGrid, I have also included dataGrid item renderer to show how to define/use a dataGrid &#8220;itemRendrer&#8221;. Search and Highlight a row depending on the searched text in a dataGrid. Define a cursor to traverse dataGrid rows.</p>
<p>The Objective of this example :</p>
<ul>
<li>How to create custom <a href="http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000854.html" target="_blank">item rendrer</a> using Updatedisplaylist and data property.</li>
<li>How to use the itemrendrer (<a href="http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html" target="_blank">detail</a>).</li>
<li>How to use custom <a href="http://livedocs.adobe.com/flex/2/langref/mx/collections/IViewCursor.html" target="_blank">cursors </a>in a dataGrid.</li>
<li>how to write a <a href="http://guavus.wordpress.com/2008/09/15/flex-component-lifecycle/" target="_blank">custom component</a> extending a base component in this case dataGrid. (highlight a row in the dataGrid).</li>
</ul>
<p style="text-align:center;"><a href="http://4638714813934842079-a-1802744773732722657-s-sites.googlegroups.com/site/vxaodz/aodz/search_datagrid.swf"><img class="aligncenter size-medium wp-image-86" title="search_datagrid" src="http://guavus.files.wordpress.com/2008/10/search_datagrid.png?w=300" alt="" width="300" height="216" /></a></p>
<p>Download source:</p>
<ul>
<li><a href="http://sites.google.com/site/vxaodz/aodz/search_datagrid.mxml" target="_blank">search_datagrid.mxml </a>(Main application)</li>
<li><a href="http://sites.google.com/site/vxaodz/aodz/UserLabelRendr3r.as" target="_blank">UserLabelRendr3r.as</a> (Item rendrer)<a href="http://sites.google.com/site/vxaodz/aodz/UserLabelRendr3r.as" target="_blank"><br />
</a></li>
<li><a href="http://sites.google.com/site/vxaodz/aodz/CustomRowColorDG.as" target="_blank">CustomRowColorDG.as</a> (highlight selected row in a dataGrid)</li>
</ul>
<p>Sample : <a href="http://4638714813934842079-a-1802744773732722657-s-sites.googlegroups.com/site/vxaodz/aodz/search_datagrid.swf" target="_blank">search_datagrid</a></p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2008/09/08/inline-itemrenderer/' rel='bookmark' title='Permanent Link: Inline Itemrenderer'>Inline Itemrenderer</a></li>
<li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2008/10/05/search-datagrid-and-simple-datagrid-itemrenderer-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inline Itemrenderer</title>
		<link>http://flex.exposedout.net/2008/09/08/inline-itemrenderer/</link>
		<comments>http://flex.exposedout.net/2008/09/08/inline-itemrenderer/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 05:56:29 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[itemrenderer]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=46</guid>
		<description><![CDATA[I stumbled upon an unknown property as I was trying to use an Inline Item Renderer on my DataGrid Columns. If you use the &#60;mx:component&#62; tag with your inline item renderer and try to have your component call an event in your main application you will get a nasty &#8220;Access to undefined method &#8230;&#8230;&#8221;. This [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2008/10/05/search-datagrid-and-simple-datagrid-itemrenderer-example/' rel='bookmark' title='Permanent Link: Search dataGrid and Simple dataGrid Itemrenderer example'>Search dataGrid and Simple dataGrid Itemrenderer example</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
<li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon an unknown property as I was trying to use an Inline Item Renderer on my DataGrid Columns. If you use the &lt;mx:component&gt; tag with your inline item renderer and try to have your component call an event in your main application you will get a nasty &#8220;Access to undefined method &#8230;&#8230;&#8221;. This is because your Inline Item Renderer is unaware of what exists in your main application. But you can use the outerDocument property to access event handlers in you main application.</p>
<p><strong>Example:</strong><br />
&lt;mx:itemRenderer&gt;<br />
&lt;mx:Component&gt;<br />
&lt;mx:VBox &gt;<br />
&lt;mx:Button label=&#8221;Remove&#8221; click=&#8221;<span style="color:#ff0000;">outerDocument.remove()</span>&#8220;/&gt;<br />
&lt;/mx:VBox&gt;<br />
&lt;/mx:Component&gt;<br />
&lt;/mx:itemRenderer&gt;</p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2008/10/05/search-datagrid-and-simple-datagrid-itemrenderer-example/' rel='bookmark' title='Permanent Link: Search dataGrid and Simple dataGrid Itemrenderer example'>Search dataGrid and Simple dataGrid Itemrenderer example</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
<li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2008/09/08/inline-itemrenderer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Copy functionality in DataGrid</title>
		<link>http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/</link>
		<comments>http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 13:34:22 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[excel]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=28</guid>
		<description><![CDATA[The following example shows the customize data grid by applying a copy and paste functionality. The idea is very simple but i think its useful, the data copied in clipboard can directly paste in excel and it will pasted in proper columns rather than in a single column, I tested this on Excel 2007. for [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2008/10/16/printing-datagrid-in-flex/' rel='bookmark' title='Permanent Link: Printing dataGrid in Flex'>Printing dataGrid in Flex</a></li>
<li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="entrybody">
<div class="snap_preview">
<p>The following example shows the customize data grid by applying a copy and paste functionality.</p>
<p>The idea is very simple but i think its useful, the data copied in clipboard can directly paste in excel and it will pasted in proper columns rather than in a single column, I tested this on Excel 2007.</p>
<p>for the running examples click <a href="http://imtiyaz-dev.blogspot.com/2008/06/test-post.html" target="_blank">here</a></p>
<p>for the complete source <a href="http://imtiyaz.ms.googlepages.com/CDGrid.rar" target="_self">here</a></p>
<p><span id="more-28"></span></p>
<blockquote><p>package com.ib.custom<br />
{<br />
import flash.events.ContextMenuEvent;<br />
import flash.events.Event;<br />
import flash.system.System;<br />
import flash.ui.ContextMenu;<br />
import flash.ui.ContextMenuItem;</p>
<p>import mx.controls.Alert;<br />
import mx.controls.DataGrid;<br />
import mx.controls.dataGridClasses.DataGridColumn;<br />
import mx.core.EventPriority;<br />
import mx.events.CloseEvent;<br />
import mx.events.ListEvent;</p>
<p>public class IBDataGrid extends DataGrid<br />
{<br />
[Bindable] public var enableCopy : Boolean = true;<br />
// for creating conext menu item for coping functionality<br />
private var copyContextItem:ContextMenuItem;<br />
// for storing the header text at only once.<br />
private var headerString : String = ”;</p>
<p>private var dataToCopy:String = ”;<br />
public function IBDataGrid()<br />
{<br />
super();<br />
}</p>
<p>// I am creating a copy context item and its handler in creation complete of DATAGRID if and only if enableCopy is true.<br />
override protected function createChildren():void{<br />
super.createChildren();<br />
var flag:Boolean = false<br />
if(enableCopy){<br />
contextMenu = new ContextMenu();<br />
createContextMenu();<br />
addEventListener(ListEvent.ITEM_CLICK,<br />
itemClickHandler,<br />
false, EventPriority.DEFAULT_HANDLER);<br />
flag = true;<br />
}<br />
}</p>
<p>private function createContextMenu():void{<br />
copyContextItem = new ContextMenuItem(”copy row/s”);<br />
copyContextItem.enabled = false;<br />
copyContextItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,copyDataHandler);<br />
contextMenu.customItems.push(copyContextItem);<br />
// comment the following line if you want default items in context menu.<br />
contextMenu.hideBuiltInItems();<br />
}</p>
<p>private function copyDataHandler(event:Event):void{<br />
dataToCopy = ”;<br />
if(selectedItems != null){<br />
dataToCopy = getSelectedRowsData();<br />
dataToCopy = ((headerString == ”) ? getHeaderData() : headerString)+”\n” + dataToCopy;<br />
copyContextItem.enabled = true;<br />
System.setClipboard(dataToCopy);<br />
}<br />
}</p>
<p>private function handleAlertClose(event:CloseEvent):void{<br />
trace(”handling .. the event”);<br />
if(event.detail == 1)<br />
{</p>
<p>}</p>
<p>}<br />
private function getHeaderData():String{<br />
headerString = ”;<br />
for(var j:int = 0; j&lt; columnCount; j++){<br />
if((columns[j] as DataGridColumn).visible)<br />
headerString += (columns[j] as DataGridColumn).headerText +”\t”;<br />
}<br />
return headerString;<br />
}</p>
<p>private function getSelectedRowsData():String{<br />
var rowsData : String = ”;<br />
for(var i:int =0;i&lt;selectedItems.length;i++) {<br />
for(var j:int = 0; j&lt; columnCount; j++){<br />
if((columns[j] as DataGridColumn).visible)<br />
rowsData += selectedItems[i][(columns[j] as DataGridColumn).dataField] +”\t”;<br />
}<br />
rowsData+= “\n”;<br />
}<br />
return rowsData;<br />
}</p>
<p>private function itemClickHandler(event:ListEvent):void<br />
{<br />
copyContextItem.enabled = true;<br />
}<br />
}<br />
}</p></blockquote>
<p>- imtiyaz</p></div>
</div>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2008/10/16/printing-datagrid-in-flex/' rel='bookmark' title='Permanent Link: Printing dataGrid in Flex'>Printing dataGrid in Flex</a></li>
<li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

