This is a typical code to set a dataprovider:
public function set dataProvider(value:Object):void
{
if (value)
{
grid.dataProvider = value;
}
}
Execution gets into this code twice. First when value is null, and second
when it's not null. Well, it's not null but still has no data. Is it
possible to only assign a data provider when there are actual rows? The
reason I am thinking of doing it is because I want to add a column to
dataProvider from another arrayCollection.Any idea? Thanks
