我试图在用户更新数据库后刷新数据网格以反映更新的数据。那可能吗?我有以下代码:
脚本
protected function updataHandler(event:MouseEvent):void
{
updateJobsResult.token = Service.updateJobs(updateJobData);
//The database will be updated after users click the update button
//I want to update datagrid dataprovider to show the updated data.
}
<s:datagrid dataprovider="jobdata">
//jobdata comes from from database query
..................
..................
</datagrid>
<s:form>
//when user selects the row in datagrid, the cell values will
//pop in this form and user can update the form
.................
.................
</form>
<s:button click="updateHandler">
谢谢您的帮助。