<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns ="true" > </asp:GridView>Code:<?xml version="1.0"?> <catalog> <book id="bk101"> <author>Gambardella, Matthew</author> <price>44.95</price> </book> <book id="bk102"> <author>Ralls, Kim</author> <price>5.95</price> </book> <book id="bk103"> <author>A</author> <price>5.95</price> </book> <book id="bk104"> <author>B</author> <price>5.95</price> </book> </catalog>
In o/p ,colums are shown in the order -
author price id
I have not set any order then y they are coming in the order
author price id..Y not in id author price??




Reply With Quote