If you refresh, are you resetting the set of columns?
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of coder3 Sent: Wednesday, February 20, 2008 11:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how does mx:DataGrid state work? 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--tp15596181p1559 6181.html <http://www.nabble.com/how-does-mx%3ADataGrid-state-work--tp15596181p155 96181.html> Sent from the FlexCoders mailing list archive at Nabble.com.