Datagrid - BoundItem

microkarl

Regular
Joined
Apr 22, 2004
Messages
88
Location
Morristown, NJ
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.


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:
Back
Top