0 Replies Latest reply on Oct 11, 2011 3:18 PM by Code Girl

    Sorting Datagrid with bound data

    Code Girl

      I have a data class A which contains an array of class B which contains a date field.

      class A

      {

           int id

           B array[] b

      }

       

      class B

      {

           int id

           Date startDate

           boolean active

      }

      I have an MX Datagrid which the dataProvider is the selected A's B array

           dataProvider=a.b

      I have a gridcolumn which is the date of B

      <mx:DataGridColumn id="startDateDC" headerText="Start Date" dataField="startDate" width="150"
         labelFunction="dateTimeFormat"
         editorDataField="value">

       

      So, how do I sort by this column and how do I filter by the active attribute.