title: Can two item renderers be used for a grid column in Adobe flex?
body: <p>I have a data grid with multiple columns among which one is for stock date. Based on the data i am getting from the backend,when a flag is disabled,i want the date to be displayed as a label,otherwise i want the start date to be editable date field. How can this be done?  I have tried this below code but its takes the last rendered item as item renderer. Cause as i loop in,the condition for different records change and rendering it this way doesnt seem to work. Please help.</p>
  
  <pre><code>private function resultHandler_tbd(event:ResultEvent):void{
  var myAC: ArrayCollection= event.result as ArrayCollection; //data from backend
    myDataGridId.dataprovider= myAC;
  for(var i:int=0;i&lt;myAC.length;i++){
     mylist=myAc[i];
     if(mylist.tbdType=="Plan" &amp;&amp; flag==true){
     plnStartDate.itemrenderer= new ClassFactory(CustomCalenderRenderer);
     }else
     plnStartDate.itemrenderer = new ClassFactory(CustomLabelRenderer);
     }
   }
  }
  </code></pre>