1 Reply Latest reply on Aug 14, 2007 2:47 AM by Karl_Sigiscar_1971

    Setting headerText value from xml data

    P Steven Level 1
      I want to set the value of the headerText in a datagrid using a value in an xml file.

      I populate my datagrid using xml data that is created dynamically from calls to a server side script.

      So I can retrieve the string that I want to display from the call to the server side script - but I do not know how to bind this string to the headerText

      Here is my datagrid code

      <mx:DataGrid id="qualificationSummaryScreenDG" dataProvider="{myData2}" variableRowHeight="true" wordWrap="true" width="730" >
      <mx:columns>
      <mx:DataGridColumn headerText="UI" dataField="ui" width="100" />
      <mx:DataGridColumn headerText="Name" dataField="name" width="140"/>
      <mx:DataGridColumn headerText="I want to set this value" dataField="componentTitle" width="180" />
      <mx:DataGridColumn headerText="Totals" dataField="totals" width="90"/>
      <mx:DataGridColumn headerText="Space Usage" dataField="spaceUsage" width="70"/>
      <mx:DataGridColumn headerText="Status" dataField="status" width="70" />
      </mx:columns>
      </mx:DataGrid>

      Thanks in advance

      Paul