RE: [flexcoders] How to change the text in datagrid ?
You could just do the work in your SQL select statement: select (case when status = 1 then 'open' else 'close' end) as acctStatus from ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, January 18, 2008 1:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to change the text in datagrid ? You could use a switch() in a labelFunction(-). Tracy _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Friday, January 18, 2008 2:32 PM To: [EMAIL PROTECTED] Subject: [flexcoders] How to change the text in datagrid ? Hi, I have a account list like this accout name status acc1 1 acc2 0 acc3 1 It is ok binding with datagrid. but I like it showed in datagrid like this accout name status acc1 open acc2 close acc3 open How to change 1 to open and 0 to close in datagrid. Thanks Mark acc3 1 No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.19.7/1232 - Release Date: 1/18/2008 7:32 PM
RE: [flexcoders] How to change the text in datagrid ?
You could use a switch() in a labelFunction(). Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Friday, January 18, 2008 2:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to change the text in datagrid ? Hi, I have a account list like this accout name status acc1 1 acc2 0 acc3 1 It is ok binding with datagrid. but I like it showed in datagrid like this accout name status acc1 open acc2 close acc3 open How to change 1 to open and 0 to close in datagrid. Thanks Mark acc3 1
Re: [flexcoders] How to change the text in datagrid ?
Have a look at DataGridColumn.labelFunction here http://livedocs.adobe.com/labs/flex3/langref/index.html?package-summary.htmlall-classes.html. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com markflex2007 wrote: Hi, I have a account list like this accout name status acc1 1 acc2 0 acc3 1 It is ok binding with datagrid. but I like it showed in datagrid like this accout name status acc1 open acc2 close acc3 open How to change 1 to open and 0 to close in datagrid. Thanks Mark acc3 1