----- Original Message ----- 
From: "guillaumeracine" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Tuesday, October 21, 2008 5:59 PM
Subject: [flexcoders] Hide columns from a datagrid


>I have a datagrid in a mxml file that contains some hard coded
> mx:column objects.
> I want to hide the mx:columns that does not contains any value for all
> objects in the dataprovider...
> I should subclass a column renderer class or something like that i think
>
> Ex:
> collection of employee : {id,name,job}
> Datagrid's dataprovider : {1,"jo",""},{2,"jo2",""}
> In this case no record have a job value so the mx:column "job" should
> be hided...

Wouldn't this be really confusing to the user?

They look at one set of data and the column is there, they look at another 
set of data and now it's gone and some new columns are there.

Won't they think your application is faulty?

Sounds like a very bad idea!

> Any idea?

Reply via email to