May 2003
Beginner
624 pages
15h 47m
English
At this point we have specified that the DataGrid should be sortable by checking the “Allow sorting” checkbox in the General screen of the DataGrid's Property Builder. This setting has the effect of displaying the sortable columns' headers as hyperlinks. We have also added the GetBooks() function to the ASP.NET Web page via the SELECT Data Method Code Builder and modified the function to accept a single input parameter that determines by which table column the results of the SQL query are sorted.
With these pieces in place, all that we have left to do is create an event handler for the DataGrid's SortCommand event and have the source code for this event handler retrieve the ...
Read now
Unlock full access