// 下階層用テンプレート
#topicpath
----

**デバッグの為のダイアログ [#u4464789]
 mx.controls.Alert.show('デバッグ文', 'メッセージ');


**DataGridの選択しているオブジェクトを取得する。 [#i7382288]
別途selectedItem変数は定義しておきます。
  <mx:DataGrid id="list" width="100%" height="100%" dataProvider="{dataObject}" 
    change="selectedItem=event.target.selectedItem;mx.controls.Alert.show(selectedItem.name, 'メッセージ');">
  <mx:columns>
    <mx:Array>
      <mx:DataGridColumn headerText="Name" columnName="name"  width="300"/>
      <mx:DataGridColumn headerText="Price" columnName="price" textAlign="right" marginRight="4"/>
    </mx:Array>
  </mx:columns>
  </mx:DataGrid>


----
この記事は
#vote(おもしろかった,そうでもない)

#comment
#topicpath


SIZE(10){現在のアクセス:&counter;}


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS