# Data Grid - Update Column with variable (not from data provider)

**URL:** <https://forum.kirupa.com/t/data-grid-update-column-with-variable-not-from-data-provider/293328>\
**Category:** flash\
**Created:** [July 27, 2009, 2:56pm UTC](https://forum.kirupa.com/t/data-grid-update-column-with-variable-not-from-data-provider/293328 "2009-07-27T14:56:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [July 27, 2009, 2:56pm UTC](https://forum.kirupa.com/t/data-grid-update-column-with-variable-not-from-data-provider/293328/1 "2009-07-27T14:56:32Z")

</div>

Hello,

I have a data grid who’s data provider is set to an XML object.

```auto

            <mx:DataGrid id="streamMonitorGrid" dataProvider="{_data.stream}" height="100%" width="100%">
                <mx:columns>
                    <mx:DataGridColumn headerText="Title" dataField="@title"/>
                    <mx:DataGridColumn headerText="StationId" dataField="@stationId"/>
                    <mx:DataGridColumn headerText="Net Connection Status" id="nconnStatus" />
                </mx:columns>
            </mx:DataGrid>

```

Title and StationId data is set to XML attributes from the XMLObject and display with no problem.

The issue that I have ran into is I want to set the 3rd column (marked as “Net Connection Status”) to a variable outside of the data provider XML object. The 3rd column should be set to any variable that I want - not within the XML object.

I cannot figure how to do the above, it almost seems like once a data provider is set you can’t set a column to anything but data within the data provider.

Any idea’s?

TIA
