2 Replies Latest reply on Jul 17, 2006 9:13 AM by ntsiii

    Problem in loading/binding single data into DataGrid in flex2.0 final release

    ckshah Level 1
      hi all,

      i have return below code to bind data in datagrid and its work fine when morethen 1 data avaliable to bind with datagrid
      i am using flex2.0 final release version.
      public function initDG(event:Event) : void
      {
      try{
      MailList = (event.target.lastResult.response.mailMessageList.mailMessage);
      }catch(err:Error)
      {
      storeInfo[elementName]="";
      MailListProcessed=new ArrayCollection();
      }

      if((storeInfo[elementName])==undefined)
      {
      storeInfo[elementName]=MailList;
      MailListProcessed=storeInfo[elementName];
      }
      else if(parentApplication.FlashMails.topInboxs.blnFlag)
      {
      storeInfo[elementName]=MailList;
      MailListProcessed=storeInfo[elementName];
      }
      }

      //MailList and MailListProcessed are arraycollection and storeInfo is array
      /// and i have use MailListProcessed which is ArrayCollection as dataProvider in my DataGrid Control..

      but when only 1 data avaliable for binding it will not display in datagrid...

      cat anybody give me idea abt this prob

      thanks in advance