After three days of solving the problem, I finally got it done. Let's share it with you...
1. for an appealer, if you want to add and modify fields in SQL Server 2008, you can do the following: Start MSSQL Server 2008, choose menu tool> Options> designer> Table Designer and database designer on the left. Then, remove the check box before "Preventing table creation changes due to saving. Restart MSSQL Server 2008.
2. Add images or other components to the flex DataGrid. It is impossible to access the components in itemrenderer by ID. The Code is as follows:
<Mx: dataGrid id = "DG" x = "21" Y = "43" width = "740" Height = "444" dataprovider = "{arr1}" rowheight = "100" textalign = "center">
<Mx: columns>
<Mx: datagridcolumn datafield = "name" headertext = "company name"/>
<Mx: datagridcolumn datafield = "phone" headertext = "phone"/>
<Mx: datagridcolumn datafield = "starttime" headertext = "Reservation date"/>
<Mx: datagridcolumn datafield = "JG" headertext = "price (RMB)"/>
<Mx: datagridcolumn headertext = "price" id = "dg3" datafield = "IMG" editordatafield = "Source" editable = "false">
<Mx: itemrenderer>
<FX: component>
<Mx: image width = "50" Height = "50"/>
</FX: component>
</MX: itemrenderer>
</MX: datagridcolumn>
</MX: columns>
</MX: DataGrid>
You can use the red area to modify the attributes of the bound component,
3. You can assign values to an array set directly in the following way (IMG does not belong to an array set before). Note that the path must be "\"; otherwise, no data can be read ,.
Arr1.getitemat (I). IMG = "D: \ domestic service type image \ ph. jpg ";