You would either need to extend the DataGrid or create a custom component with this functionality is you are not looking for editable DataGrid. However, I am not sure why would you do that. Editable DataGrid should serve the purpose.
I have to configure it for my purpose,hope to learn about your code..
listData.label = DataGrid(parent.parent).columns[dgListData.columnIndex].headerText;
code line was not needed for me...thnx good work..