I have this code but I am trying to convert this to actionscript so I render this programaticaly but I failed. how do i write this on AS?
<mx:DataGrid allowMultipleSelection="true" id="dg_disk" dataProvider="{people}" height="100%" width="100%" selectedIndex="0" x="50" y="50">
<mx:columns>
<mx:DataGridColumn dataField="name" id="empname" headerText="EmpName"/>
<mx:DataGridColumn dataField="title" id="title" headerText="Title"/>
<mx:DataGridColumn dataField="description" id="desc" headerText="Description"/>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
This is part of a programm I have written. The mSessionLogDG is the DataGrid (in this case we add dynamic columns to already existing ones).