发新话题
打印

如何访问DataGrid中控件的属性?

如何访问DataGrid中控件的属性?

如何访问DataGrid中控件的属性?
<mx:DataGrid id="musicList" width="100%" textAlign="center" dataProvider="{myFavorite}" bottom="9" top="0">
                          <mx:columns>
                                 <mx:DataGridColumn headerText="操作">
                                        <mx:itemRenderer>
                                               <mx:Component>
                                                      <mx:HBox horiz>
                                                             <mx:Button id="bt1" styleName="localMusicButton" click="parentDocument.dataGridDownLoadButtonClick(event)"/>
                                                             <mx:Button id="bt2" styleName="gdplayButton" click="parentDocument.dataGridButtonClick(event)"/>
                                                      </mx:HBox>
                                               </mx:Component>
                                        </mx:itemRenderer>
                                 </mx:DataGridColumn>                              
                                <mx:DataGridColumn headerText="歌名" dataField="songName"/>
                                  </mx:columns>
                   </mx:DataGrid>

我想访问id为bt1的Button的属性,怎么做呢?

谢谢了

TOP

顶一个吧

既然看了,顶一个吧,好帖子

-------------------------
We provide all WoW Gold services. You can buy  WoW Gold Cheap WoW Gold here!
Welcome to our website for you World of Warcraft Gold,WoW Gold,Cheap World of Warcraft Gold,buy cheap WoW Gold,real WoW Gold,jewelry store..

TOP

您的文章写的并不好,但是我喜欢你的风格,谢谢了!

提示: 作者被禁止或删除 内容自动屏蔽

TOP

ss

ss

TOP

ss

ffff

TOP

发新话题