# \[AS\]DataGrid and Row Id!

**URL:** <https://forum.kirupa.com/t/as-datagrid-and-row-id/186012>\
**Category:** Uncategorized\
**Created:** [April 18, 2006, 1:17pm UTC](https://forum.kirupa.com/t/as-datagrid-and-row-id/186012 "2006-04-18T13:17:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![btibia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/btibia/32/1625_2.png) [@btibia](https://forum.kirupa.com/u/btibia)\
**Post date:** [April 18, 2006, 1:17pm UTC](https://forum.kirupa.com/t/as-datagrid-and-row-id/186012/1 "2006-04-18T13:17:30Z")

</div>

Hello guys,

I have a little problem, i have a datagrid that it’s populated from a XML file.  
The XML structure is this:

```php

<data>
  <row url="print_news.php">
       <id>"x"</id>
       <data>"MM/DD/YYYY"</data>
       <news>"message"</news>
  </row>

 <row url="print_news.php">
       <id>"x"</id>
       <data>"MM/DD/YYYY"</data>
       <news>"message"</news>
  </row>

<data>

```

```
     -"x" = it is added automaticaly from the datebase;
     -"MM/DD/YYYY" = it is added automaticaly from the datebase;
     -"message" = it is taken automaticaly from the datebase;

```

The XML it is created by a php script.

In the swf i have the datagrid with cellrenderer API.  
My question is:  
I want when i click on the first news(row,id) on the datagrid to call the print\_news.php and take the id = 1 (the id that corespond to the datagrid row).

Do you think you can help me with this?

P.S. If you want more details ask me, in first post i don’t know what you need?
