Which of the following code is correct to add a column to a DataGrid component?
A. <mx:DataGridColumn dataField=name headerText=Name />
B. <mx:DataGridColumn columnName=name headerText=Name />
C. <mx:DataGridColumn fieldName=name headerText=Name />
D. <mx:DataGridColumn dataName=name headerText=Name />
Answer:A
Which of the following code is correct to add a column to a DataGrid component?
A. <mx:DataGridColumn dataField=name headerText=Name /> B. <mx:DataGridColumn columnName=name headerText=Name /> C. <mx:DataGridColumn fieldName=name headerText=Name /> D. <mx:DataGridColumn dataName=name headerText=Name />