flex4取得datagrid裏字段值的正確方法
解決的問題:datagrid裏的數據經過排序後,數據就會混亂:
1. datagrid裏的數據經過排序後,數據就會混亂。
如下是正確的方法
var path1:String = this.originalPicList.selectedItem.picUrlImage;
如下是錯誤的方法:
var k:int = this.originalPicList.selectedIndex;
//獲取dataGrid中的數據
var arr : Array =(originalPicList.dataProvider as ArrayCollection).source;
//獲取當前選中行的dictType列的數據
var path:String = arr[k]["picUrlImage"].toString();
最後更新:2017-04-02 06:51:40
上一篇:
網絡編輯如何為文章選擇合適的關鍵字?
下一篇:
Access數據庫訪問助手類
error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/
ALEIYE 2.0發布 首創RET關鍵事件功能
MySQL · myrocks · fast data load
BDAC 2017中國大數據應用大會(成都)等您赴約!
asp.net中DropDownList添加“請選擇”提示
Socket 錯誤一覽表,Socket Error Code
xor 加密簡介
android學習之volley框架(網絡)
Android 係統Menu樣式的修改
歐洲媒體“杠上”穀歌新聞