0 Replies Latest reply on Jun 18, 2007 9:45 PM by raga_menon

    Error while using DataGrid

      Hi All,

      Am new to flex and learning and doing the examples of flex applications.
      while using the data grid in my application am getting an error like this
      Multiple markers at this line --Access of undefined property RenderDGHeader and
      Definition headerRenderer="myComponents.RendererDGHeader could not be found..
      where RendererDGHeader is file which contains the
      ?xml version="1.0"?>
      <!-- itemRenderers\dataGrid\myComponents\RendererDGHeader.mxml -->
      <mx:HBox xmlns:mx=" http://www.adobe.com/2006/mxml">

      public var sale:Class;

      <mx:Label text="Sale Price!"/>
      <mx:Image height="20" source="{sale}"/>

      and MainDGHeaderRenderer.mxml is the main file where am declaring the datagrid...

      <?xml version="1.0"?>
      <!-- itemRenderers\dataGrid\MainDGHeaderRenderer.mxml -->
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">

      import mx.collections.ArrayCollection;

      private var initDG:ArrayCollection = new ArrayCollection([
      {Artist:'Pavement', Album:'Slanted and Enchanted',
      Price:11.99, SalePrice: true },
      {Artist:'Pavement', Album:'Brighten the Corners',
      Price:11.99, SalePrice: false }

      <mx:DataGrid id="myGrid"
      <mx:DataGridColumn dataField="Artist"/>
      <mx:DataGridColumn dataField="Album"/>
      <mx:DataGridColumn dataField="Price"/>
      <mx:DataGridColumn width="150" dataField="SalePrice"
      how can i ignore the error.. if anyone knows kindly inform how to achieve the error.