我想在 Flex 中读取 CSV 文件并在 Datagrid 上显示文件内容。请提供解决方案...
我的 Datagrid 和我想在其上显示文件文件内容的列::
<mx:AdvancedDataGrid id="dg" x="0" y="{btnBar.height}" width="100%" height="532"
defaultLeafIcon="{null}" draggableColumns="false" editable="true"
folderClosedIcon="{null}" folderOpenIcon="{null}"
horizontalScrollPolicy="auto" itemEditBegin="onItemEditBegin(event)"
itemEditEnd="processData(event)" itemOpen="onItemOpen(event.item)"
resizableColumns="false" sortableColumns="false" sortExpertMode="true"
verticalScrollPolicy="on">
<mx:AdvancedDataGridColumn id="value" width="250" dataField="value"
editorDataField="classValue" headerText="Values"
itemEditor="ComboBoxRenderer"/>
<mx:AdvancedDataGridColumn id="property" dataField="property" editable="true"
editorDataField="SelectedItem" headerText="Property"
itemEditor="PropertyComboBoxRenderer"/>