DataGrid Problem


i want put datagrid in application header fields represent test names unitest1,unittest2 , on.and first row showing subjects english,hindi , on.and other rows shows marks respective subjects.so please how represent xmllist or other dataprovider solve these issue.here piece of code used.
<mx:xmllist xmlns="" id="marks">
<unit>
<subject>english</subject>
<unit1>24</unit1>
<hindi>23</hindi>
<telugu>23</telugu>
<maths>25</maths>
<science>20</science>
<social>22</social>
<gk>23</gk>
<comp>22</comp>
<total>140</total>
</unit>
<unit>
<subject>hindi</subject>
<unit1>22</unit1>
<hindi>24</hindi>
<telugu>23</telugu>
<maths>24</maths>
<science>22</science>
<social>23</social>
<gk>23</gk>
<comp>22</comp>
<total>140</total>
</unit>
<unit>
<subject>telugu</subject>
<unit1>23</unit1>
<hindi>24</hindi>
<telugu>16</telugu>
<maths>22</maths>
<science>18</science>
<social>17</social>
<gk>23</gk>
<comp>22</comp>
<total>140</total>
</unit>
<unit>
<subject>maths</subject>
<unit1>24</unit1>
<hindi>17</hindi>
<telugu>16</telugu>
<maths>20</maths>
<science>22</science>
<social>22</social>
<gk>23</gk>
<comp>22</comp>
<total>140</total>
</unit>
<unit>
<subject>science</subject>
<unit1>24</unit1>
<hindi>23</hindi>
<telugu>23</telugu>
<maths>25</maths>
<science>20</science>
<social>22</social>
<gk>23</gk>
<comp>22</comp>
<total>140</total>
</unit>
<unit>
<subject>social</subject>
<unit1>24</unit1>
<hindi>23</hindi>
<telugu>23</telugu>
<maths>25</maths>
<science>20</science>
<social>22</social>
<gk>23</gk>
<comp>22</comp>
<total>140</total>
</unit>
<unit>
<subject>g.k</subject>
<unit1>24</unit1>
<hindi>23</hindi>
<telugu>23</telugu>
<maths>25</maths>
<science>20</science>
<social>22</social>
<gk>23</gk>
<comp>22</comp>
<total>140</total>
</unit>
<unit>
<subject>computers</subject>
<unit1>24</unit1>
<hindi>23</hindi>
<telugu>23</telugu>
<maths>25</maths>
<science>20</science>
<social>22</social>
<gk>23</gk>
<comp>22</comp>
<total>140</total>
</unit>
<unit>
<subject>total</subject>
<unit1>24</unit1>
<hindi>23</hindi>
<telugu>23</telugu>
<maths>25</maths>
<science>20</science>
<social>22</social>
<gk>23</gk>
<comp>22</comp>
<total>140</total>
</unit>

</mx:xmllist>
<mx:datagrid x="6" y="56" dataprovider="{marks}" height="230">
<mx:columns>
<mx:datagridcolumn headertext="subjects" datafield="subject"/>
<mx:datagridcolumn headertext="unittest1" datafield="unit1"/>
<mx:datagridcolumn headertext="unittest2" datafield="hindi"/>
<mx:datagridcolumn headertext="quarterly" datafield="telugu"/>
<mx:datagridcolumn headertext="unittest3" datafield="maths"/>
<mx:datagridcolumn headertext="halfyearly" datafield="science"/>
<mx:datagridcolumn headertext="unittest4" datafield="social"/>
<mx:datagridcolumn headertext="final" datafield="gk"/>
</mx:columns>
</mx:datagrid>

but providing dat needed.please solve problem possible.thanq in advance.

i not understand want dg display. explain again?

tracy


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support