From c397b21f03fa535ec1c742dac1a66e315879cf10 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 5 Feb 2006 00:29:37 +0000 Subject: Added an example showing TDataGrid sort functionality. --- demos/quickstart/protected/pages/Controls/DataGrid2.page | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'demos/quickstart/protected/pages/Controls/DataGrid2.page') diff --git a/demos/quickstart/protected/pages/Controls/DataGrid2.page b/demos/quickstart/protected/pages/Controls/DataGrid2.page index 8039a738..7f11071f 100644 --- a/demos/quickstart/protected/pages/Controls/DataGrid2.page +++ b/demos/quickstart/protected/pages/Controls/DataGrid2.page @@ -12,7 +12,12 @@ The following example shows how to make the previous book information table an i

Sorting

- +

+TDataGrid supports sorting its items according to specific columns. To enable sorting, set AllowSorting to true. This will turn column headers into clickable buttons if their SortExpression property is not empty. When users click on the header buttons, an OnSortCommand event will be raised. Developers can write handlers to respond to the sort command and sort the data according to SortExpression which is specified in the corresponding column. +

+

+The following example turns Example 2 into a sortable datagrid. Users can click on any link button displayed in the header of a column and the data will be sorted in ascending order along that column. +

Paging

-- cgit v1.2.3