I may be wrong (Someone correct me if I am)... The built-in item renderer sees the field as a string and decides that an empty string will be false and non-empty will be true for the checkbox. It does not convert the string value of "false" to the boolean value of false.
You will need to create a custom item renderer for that field. See http://blogs.adobe.com/aharui/item_renderers/ for details. --- In [email protected], jmsavoy <jeremysa...@...> wrote: > > > I have a checkbox as an itemrenderer in a datagrid as follows: > > <mx:DataGrid dataProvider="{myArrayCollection}"> > <mx:columns> > <mx:DataGridColumn headerText="Sent" width="75" > textAlign="center"> > <mx:itemRenderer> > <mx:Component> > <mx:CheckBox click="data.Sent=!data.Sent" > selected="{data.Sent}"/> > </mx:Component> > </mx:itemRenderer> > </mx:DataGridColumn> > </mx:columns> > > </mx:DataGrid> > > The dataProvider is an AC pulled and created from mysql db. This is trimmed > version of my datagrid, in the full version there are many other columns, > and they all display the correct data. > > The value "Sent" is a text string either "true" or "false". However, the > checkbox is always checked, regardless of the value of "Sent" being "true" > or "false". > > If I set all "false" values to NULL, i.e. not set in the database, then > those items do not display as "checked" - however this is not the desired > method, I would rather have them set to "false" and not NULL > > Has anyone else seen this issue, or can anyone shed light on the problem? > Thanks ! > -- > View this message in context: http://www.nabble.com/Flex-3-checkbox-as-itemrenderer-in-datagrid%2C-%22selected%22-property-boolean-not-working-tp21131337p21131337.html > Sent from the FlexCoders mailing list archive at Nabble.com. >

