Hi Shannon,

CheckBox.selected needs to be true or false.  Also, you can put the CheckBox itemRenderer in a container and center it with verticalAlign and horizontalAlign.  Here's a sample:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=443 

-TH


--- In flexcoders@yahoogroups.com, "Shannon Hicks" <[EMAIL PROTECTED]> wrote:
>
> I have a dataGrid where I'd like to use a checkbox drop-in renderer/editor.
> My query returns two columns: name [varchar(45)] and featured [smallint].
> Featured returns either 1 or 0.
>
> Now, in the dataGrid, my featured column looks like this:
>
> <mx:DataGridColumn headerText="Featured Image" dataField="featured"
> itemRenderer="mx.controls.CheckBox" rendererIsEditor="true"
> editorDataField="selected" textAlign="center"/>
>
> First off... The checkbox doesn't show checked/unchecked according to the
> value of featured (1 or 0). Do I need to somehow convert 1 & 0 to boolean
> values? Isn't flash supposed to do this automatically?
>
> Secondly... The checkbox isn't centered. I'm not sure how to do that, as
> silly as it sounds.
>
> Shan
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to