microkarl
Regular
Hi all,
I have a datagrid and have AllowSorting="True", but when I use BoundItem (I need to specify what column to show on the grid). I was not able to click on the header. The following is my code.
I have a datagrid and have AllowSorting="True", but when I use BoundItem (I need to specify what column to show on the grid). I was not able to click on the header. The following is my code.
Code:
<asp:DataGrid ID="dgTest" AllowSorting="True" Runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundColumn HeaderText="Express" DataField="sp1" />
<asp:BoundColumn HeaderText="Watch" DataField="sp2" />
<asp:BoundColumn HeaderText="Grocery" DataField="sp3" />
<asp:BoundColumn HeaderText="Wine" DataField="sp4" />
</Columns>
</asp:DataGrid>
Last edited: