0 Replies Latest reply on Aug 27, 2007 9:35 PM by rite2rio

    Unable to populate data correctly into a customized datagrid which extends a normal datagrid

    rite2rio
      Hi guys,
      I have used a Customized DataGrid in my application infact i have used it in all the modules ,but the problem is that the data of the previous DataGrids is getting populated on the datagrid of the other modules that is the ,present data is not shoing up.I dont know whats the problem.

      I am just giving you a sample code of my dataprovider that i am using to populate my data grid.

      public var gridColumns:ArrayCollection = new ArrayCollection([
      {colname:"RowNum",colwidth:"60",coldata:"@ROWNUM",colvisibility:false},
      {colname:"ID",colwidth:"60",coldata:"@ID",colvisibility:false},
      {colname:"Name",colwidth:"120",coldata:"@NAME",colvisibility:true},
      {colname:"Address",colwidth:"50",coldata:"@ADDRESS",colvisibility:true},
      {colname:"City",colwidth:"90",coldata:"@CITY",colvisibility:true},
      {colname:"State",colwidth:"90",coldata:"@STATE",colvisibility:true},
      {colname:"ZIP",colwidth:"90",coldata:"@ZIP",colvisibility:true},
      {colname:"Telephone",colwidth:"60",coldata:"@TELNO",colvisibility:true}
      ]);

      Also another problem is that the column heading or title on the datagrid is showing as follows:
      @ROWNUM | @ID @NAME | @ADDRESS | @CITY | @STATE | @ZIP | @ TELNO

      istead it should show as follows i.e. without the @
      ROWNUM | ID | NAME | ADDRESS | CITY | STATE | ZIP | TELNO

      Could any one help me with this problem plzzzzzz.
      regards ,
      Mario