tester1
08-25-2006, 10:29 AM
Is there any way that we can sort numbers in a grid?
XML file:
<list>
<employee name="abc" code="400263" />
<employee name="def" code="33003" />
<employee name="ijk" code="33099" />
<employee name="xyz" code="200389"/>
</list>
LZX file:
<canvas height="250" maxtextwidth="1000">
<dataset name="gridData" src="result.xml"/>
<grid datapath="gridData:/list">
<gridcolumn width="300">Name
<text datapath="@name"/>
</gridcolumn>
<gridcolumn width="300">Number
<text datapath="@code" />
</gridcolumn>
</grid>
</canvas>
XML file:
<list>
<employee name="abc" code="400263" />
<employee name="def" code="33003" />
<employee name="ijk" code="33099" />
<employee name="xyz" code="200389"/>
</list>
LZX file:
<canvas height="250" maxtextwidth="1000">
<dataset name="gridData" src="result.xml"/>
<grid datapath="gridData:/list">
<gridcolumn width="300">Name
<text datapath="@name"/>
</gridcolumn>
<gridcolumn width="300">Number
<text datapath="@code" />
</gridcolumn>
</grid>
</canvas>