# Adding a new column to a DataGrid

**URL:** <https://forum.kirupa.com/t/adding-a-new-column-to-a-datagrid/291700>\
**Category:** flash\
**Created:** [July 3, 2009, 12:06pm UTC](https://forum.kirupa.com/t/adding-a-new-column-to-a-datagrid/291700 "2009-07-03T12:06:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThinkKirupa](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@ThinkKirupa](https://forum.kirupa.com/u/ThinkKirupa)\
**Post date:** [July 3, 2009, 12:06pm UTC](https://forum.kirupa.com/t/adding-a-new-column-to-a-datagrid/291700/1 "2009-07-03T12:06:55Z")

</div>

Hi.

I have a DataGrid that I have populated with an XML. Now I wanted to add a column at the beginning with respectively row number. How can I do that? Add a column at the beginning and giving it a title is easy but I don’t know how to populate it!?
