![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
Is there anything special I need to do to get the sorting feature to work with
a gridview in a .asp page - other than AllowSorting="true" in the code? My code is attached.. thanks for any help. jill <form runat="server"> <asp ataGrid AllowPaging="false"AllowSorting="true" AutoGenerateColumns="false" CellPadding="3" CellSpacing="2" DataSource="<%# DataSet1.DefaultView %>" ID="DataGrid1" runat="server" ShowFooter="false" ShowHeader="true" > <headerstyle HorizontalAlign="center" BackColor="#E8EBFD" ForeColor="#3D3DB6" Font-Name="Verdana, Arial, Helvetica, sans-serif" Font-Bold="true" Font-Size="smaller" /> <itemstyle BackColor="#F2F2F2" Font-Name="Verdana, Arial, Helvetica, sans-serif" Font-Size="smaller" /> <alternatingitemstyle BackColor="#E5E5E5" Font-Name="Verdana, Arial, Helvetica, sans-serif" Font-Size="smaller" /> <footerstyle HorizontalAlign="center" BackColor="#E8EBFD" ForeColor="#3D3DB6" Font-Name="Verdana, Arial, Helvetica, sans-serif" Font-Bold="true" Font-Size="smaller" /> <pagerstyle BackColor="white" Font-Name="Verdana, Arial, Helvetica, sans-serif" Font-Size="smaller" /> <columns> <asp:BoundColumn DataField="Date" HeaderText="Date Out" ReadOnly="true" Visible="True"/> <asp:BoundColumn DataField="Name" HeaderText="Name" ReadOnly="true" Visible="True"/> <asp:BoundColumn DataField="Time_Out" HeaderText="Time Out" ReadOnly="true" Visible="True"/> <asp:BoundColumn DataField="Description" HeaderText="Description" ReadOnly="true" Visible="True"/> <asp:BoundColumn DataField="Notes" HeaderText="Notes" ReadOnly="true" Visible="True"/> <asp:BoundColumn DataField="Date_Entered" HeaderText="Date Entered" ReadOnly="true" Visible="True"/> </columns> </asp ataGrid></form> |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise