datagrid属性如下所写<mx:DataGrid id="grid" x="54" y="62" width="90%" dataProvider="{MessageList}" rowCount="{DataGridRowCount}" >
注意高度不要定义。