Ok fine..

On Thu, May 5, 2011 at 8:59 AM, Gaurav <[email protected]> wrote:

> Thanks I found the solution. In my case earlier Datgrid dataprovider
> was not getting refreshed properly so I dint use to the dynamically
> added columns.
>
> On May 4, 1:04 pm, sudha says 2 u <[email protected]> wrote:
> > Dynamic adding data to data grid
> >
> > use this code...
> >
> > for Example
> > var arr:ArryCollection=new
> > ArrayCollection({sno:'1001',uname:'scott',pwd:'scott'},{data},{some
> data});
> > function inserRecord(){
> >
> > var val1=Text1.text
> > var val2=Text2.text
> > var val3=Text1.text
> > obj:Object=new Object();
> > obj.sno=val1;
> > obj.uname=val2;
> > obj.pwd=val3;
> > arr.addItem(obj);
> > dg1.dataprovider=arr;
> > dg1.rowcount=arr.length;}
> >
> > dg1 is data grid id
> >
> > try with this
> >
> > --
> > *SUDHA SAYS 2 U*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>


-- 

Regards,

Manikandan.S  <http://www.umoldit.com>
 <http://www.umoldit.com>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to