2 Replies Latest reply on Mar 2, 2010 7:37 AM by elamukil

    Datagrid  - need help

    elamukil

      I need to build a flex page with datagrid which displays some transaction data. some transaction will have only one record and some may have more than one line of record.

      example

      Namecard noamount
      xxxx123420
      yyyy234540
      543210
      zzzz567840
      ssss564312

       

      i want to maintain the row grouping so when i sort the datagrid child row should stick to the parent element. if i sort by amt column card no. 2345 and 5432 should always be with yyyy in this case.

      Do i need to use advanced datagrid? i dont want a tree kindof thing instead all data expanded by so that it looks like the above example.

      below is the xml format i am using.

      Kindly help me at the earliest.

      <root>
        <dtlList>
          <transDtl>
            <cashierNumber>xxxx</cashierNumber>
            <info>
              <GiftCard>
                <giftCardNumber>1234</giftCardNumber>
                <giftCardAmountString>$40.00</giftCardAmountString>
              </GiftCard>
            </info>
          </transDtl>
          <transDtl>
            <cashierNumber>yyyy</cashierNumber>
            <info>
              <GiftCard>
                <giftCardNumber>2345</giftCardNumber>
                <giftCardAmountString>$40.00</giftCardAmountString>
              </GiftCard>
         <GiftCard>
                <giftCardNumber>5432</giftCardNumber>
                <giftCardAmountString>$40.00</giftCardAmountString>
              </GiftCard>
            </info>
          </transDtl>
          <transDtl>
            <cashierNumber>zzzz</cashierNumber>
            <info>
              <GiftCard>
                <giftCardNumber>5678</giftCardNumber>
                <giftCardAmountString>$40.00</giftCardAmountString>
              </GiftCard>
            </info>
          </transDtl>
        </dtlList>
      </root>