# Data Grid Component

**URL:** <https://forum.kirupa.com/t/data-grid-component/170884>\
**Category:** Uncategorized\
**Created:** [November 30, 2005, 6:58am UTC](https://forum.kirupa.com/t/data-grid-component/170884 "2005-11-30T06:58:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eferna](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@eferna](https://forum.kirupa.com/u/eferna)\
**Post date:** [November 30, 2005, 6:58am UTC](https://forum.kirupa.com/t/data-grid-component/170884/1 "2005-11-30T06:58:28Z")

</div>

Hi,  
I have a question regarding the Data Grid Component. I want to trigger a function to call the XML into a txt label field. What is the right syntax for the code needed.  
This is what I have so far. The var name for my label is client…this obviously does not work…

\_root.myportReceiveXMLConnector.trigger();  
listenerObject = new Object();  
listenerObject.cellPress = function(event){  
client.text(firstNode(0).childNode(0));  
myportDataGrid.addEventListener(“cellPress”, listenerObject);  
}
