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
The best way to solve these problems is to simply use the
debugger and put a breakpoint in the initDG() method and see what's
going on. However, I think your problem is that if the back-end
returns just one element, Flex won't wrap it in an array, so your
MailList assignment would fail. In that case, you'll have to create
the array yourself.