Column Sort

Grid column sort is almost mandatory in any Grid presentation. From the first day of our classic ASP product to today's DotNet version, we have received a lot of comment suggestions in this feature. The present configuration seems to satisfy everybody. The following is the list of options available -

Column Sort with Automatic LineUp

<!--T_Sort.aspx-->

<script language="vb" runat="server">
Sub Page_Load(Source as Object, E as EventArgs)
   Dim CS As New Tornado.Z()
   CS.dbQP="U=12| S=land| Gdf=0,1,2,3,4| Sf=0,1,2| Sclj=t| ps=10| D=Nwind.mdb| Q=Orders| Th=tit=Multi-Columns Sort with Automatic Lineup"
   CS.ASPdbNET()
End Sub
</script>

This example illustrates sorting columns is as easy as 1,2,3. Just specify which column to sorted in the property (0,1,2). This is not a single  column sort but a multiple fields sort. Click the arrow and the sort field will be selected or appended. Click the opposite direction and the field's sort order will change but order position will maintain. Click the arrow of same direction will delete the sort field. Note that with the dbSortColLeftJustify (sclj) option, the columns will be shifted to the left according to sort order.