Hi All,

I am trying to use "state" to change to column fields of mx:DataGrid.

for example, if it's state1, i show column1, column3 only. if it's state2, i
show column2, column3 only.

so i made it this way:

<mx:states>    
    <mx:State name="state1" basedOn="">
       <mx:SetProperty target="{column2}" name="visible" value="false" />
   </mx:State>
    <mx:State name="state2" basedOn="">
      <mx:SetProperty target="{column1}" name="visible" value="false" />
   </mx:State>
</mx:states>    


it works fine right after i change the state. but if i refresh the table,
even it's still in the same state, all the columns will show. 

did i do it wrong? what's the right approach?

thanks!!

c.
-- 
View this message in context: 
http://www.nabble.com/how-does-mx%3ADataGrid-state-work--tp15596181p15596181.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to