Como asim?, os CheckBoxs?, eles ja iniciam seleccionados, nao esquesa de
colocar no data provider do seo Datagrid a propiedade selected


<mx:Script>
<![CDATA[
 public var combonomes:Array =
[
                                        {nomfun:"ELETRICA - SERVICOS ELE.",
               selected:"true"},
{nomfun:"TRANSPORTES - VEICULOS",                selected:"true"},
{nomfun:"DPS INFORMATICA - DPS",                     selected:"true"},
{nomfun:"FERNANDA - MATERIAL XEROX",            selected:"true"},
{nomfun:"VALQUIRIA - SUPORTE XEROX",
selected:"true"}];
 public function init():void{
dg.dataProvider = combonomes;
}
 ]]>
</mx:Script>
 *<mx:DataGri*d x="201" y="61" width="540" height="389" id="dg"
 editable="true">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="nomfun"/>
<mx:DataGridColumn textAlign="center"   dataField="selected"
   headerText="Paga Horas" width="35" editable="true"
   editorDataField="selected" rendererIsEditor="true">
<mx:itemRenderer>
*<mx:Component>*
*<mx:CheckBox selected="{data.selected}"/>*
*</mx:Component>*
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
*         </mx:DataGrid>*


La alegría se multiplica, cuando la dividimos

-- 
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para 
flexdev-unsubscr...@googlegroups.com
Mais opções estão disponíveis em http://groups.google.com/group/flexdev

To unsubscribe from this group, send email to 
flexdev+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Responder a